Skip to content

Instantly share code, notes, and snippets.

@tfer
Forked from anonymous/index.html
Created November 5, 2015 19:49
Show Gist options
  • Save tfer/f0368767bc1978b06ddc to your computer and use it in GitHub Desktop.
Save tfer/f0368767bc1978b06ddc to your computer and use it in GitHub Desktop.
Welcome to our site // source http://jsbin.com/fefeli
<!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>
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