Created
November 20, 2014 23:40
-
-
Save djprmf/1b5476fd64f964c8f349 to your computer and use it in GitHub Desktop.
This file contains 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> | |
function showLink() { | |
document.getElementById("theLink").setAttribute("href","http://www.google.pt"); //Link a mostrar | |
} | |
function clickjack() { | |
document.getElementById("theLink").setAttribute("href","http://www.bing.com"); //Link para onde realmente vai | |
} | |
</script> | |
<a id="theLink" href="#" onmouseover="showLink()" onmousedown="clickjack()">O meu link para o Google</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment