-
-
Save tfer/f0368767bc1978b06ddc to your computer and use it in GitHub Desktop.
Welcome to our site // source http://jsbin.com/fefeli
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to our site</title> | |
<script src="script08.js"></script> | |
</head> | |
<body> | |
<h2> | |
Hey, check out <a href="http://www.maxandmikey.com" id="redirect">this cat's Web site</a>. | |
</h2> | |
<script id="jsbin-javascript"> | |
window.onload = initAll; | |
function initAll() { | |
document.getElementById("redirect").onclick = initRedirect; | |
} | |
function initRedirect() { | |
alert("We are not responsible for the content of pages outside our site"); | |
window.location = this; | |
return false; | |
} | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to our site</title> | |
<script src="script08.js"><\/script> | |
</head> | |
<body> | |
<h2> | |
Hey, check out <a href="http://www.maxandmikey.com" id="redirect">this cat's Web site</a>. | |
</h2> | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">window.onload = initAll; | |
function initAll() { | |
document.getElementById("redirect").onclick = initRedirect; | |
} | |
function initRedirect() { | |
alert("We are not responsible for the content of pages outside our site"); | |
window.location = this; | |
return false; | |
}</script></body> | |
</html> |
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
window.onload = initAll; | |
function initAll() { | |
document.getElementById("redirect").onclick = initRedirect; | |
} | |
function initRedirect() { | |
alert("We are not responsible for the content of pages outside our site"); | |
window.location = this; | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment