span with onclick event inside a tag

css, html

Solution

<a href="http://the.url.com/page.html">
    <span onclick="hide(); return false">Hide me</span>
</a>

This is the easiest solution.

Problem

Sample code ``` <a href="page" style="text-decoration:none;display:block;"> <span onclick="hide()">Hide me</span> </a> ``` Since the a tag is over the span is not possible to click it. I try z-index but that didnt work

Original source