Difference between revisions of "Anchor with no href"

From Level Access Web Labs
Jump to navigation Jump to search
Line 5: Line 5:
 
<script>
 
<script>
 
   function check() {
 
   function check() {
     if (event.keyCode == 32 || event.keyCode == 13)  
+
     if (event.keyCode == 32 || event.keyCode == 13) {
 
       window.location = "http://www.google.com";
 
       window.location = "http://www.google.com";
 +
      event.preventDefault()
 +
    }
 
   }
 
   }
 
</script>
 
</script>

Revision as of 00:16, 4 May 2018

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

Our site