Created
April 8, 2016 03:33
-
-
Save TheRealJAG/3eb34829bbccc467b245e27ce5230b0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://code.jquery.com/jquery-1.11.0.js"></script> | |
<script type="text/javascript"> | |
<!-- | |
$(document).ready(function() { | |
registerHandlers(); | |
function registerHandlers() { | |
$('a').click(function(){ | |
var i = $('a').index(this); | |
alert(i); | |
return false; | |
}) | |
} | |
}); | |
--> | |
</script> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test page</title> | |
</head> | |
<body> | |
In my life, I used the following web search engines:<br/> | |
<a href="//www.yahoo.com">Yahoo!</a><br/> | |
<a href="//www.altavista.com">AltaVista</a><br/> | |
<a href="//www.google.com">Google</a><br/> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment