Difference between revisions of "Div onclick"

From Level Access Web Labs
Jump to navigation Jump to search
 
Line 2: Line 2:
 
   <div onclick="alert('test');" tabindex="0"> test </div>
 
   <div onclick="alert('test');" tabindex="0"> test </div>
 
   <div onclick="alert('test');" > test with no tab index</div>
 
   <div onclick="alert('test');" > test with no tab index</div>
 +
  JavaScript
 +
  <a href="javascript:alert('jon');"> A link </a>
 
</html>
 
</html>

Latest revision as of 20:02, 14 March 2018

test
test with no tab index

JavaScript A link