Difference between revisions of "Anchor with href javascript"

From Level Access Web Labs
Jump to navigation Jump to search
Line 1: Line 1:
 +
Test page for anchors with href javascript:;
 +
 
<html>
 
<html>
   <div onclick="alert('jon');">
+
<div>
     <a href="javascript:;"> Alert </a>
+
    <a href="javascript:;" onclick="alert('hi!');"> Alert with onclick on anchor</a>
 +
</div>
 +
   <div onclick="alert('hi!');">
 +
     <a href="javascript:;"> Alert with onlick on parent div</a>
 
   </div>
 
   </div>
 
</html>
 
</html>

Revision as of 14:20, 28 October 2019

Test page for anchors with href javascript:;

Alert with onclick on anchor
Alert with onlick on parent div