Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (19 sloc) 482 Bytes
function displayAlert(element)
alert('You clicked '+element.nodeName);
<table style="width:100px;height:100px;border:inset">
<td onclick="displayAlert(this)">Content.</td>
<p>Click anywhere inside the table element and you should get an alert telling you so.</p>
<p>Bugzilla 3662 was that clicking in non-content did not fire onclick handler.</p>
Something went wrong with that request. Please try again.