Difference between revisions of "Anchor with no href"

From Level Access Web Labs
Jump to navigation Jump to search
(Created page with "Anchor with no href but with onclick and tabindex but no role. <html> <a onclick="alert('jon');" tabindex="0"> Our site </a> </html>")
 
Line 2: Line 2:
  
 
<html>
 
<html>
   <a onclick="alert('jon');" tabindex="0"> Our site </a>
+
<script>
 +
  function check() {
 +
    if (event.keyCode == 32) || (event.keyCode == 28)
 +
      window.location = "http://www.google.com";
 +
  }
 +
</script>
 +
   <a onclick="window.location = 'http://www.google.com';" tabindex="0" onKeyup="check();"> Our site </a>
 
</html>
 
</html>

Revision as of 19:38, 3 May 2018

Anchor with no href but with onclick and tabindex but no role.

Our site