Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2015 18:40
Show Gist options
  • Save anonymous/f01985e5570dcdcfa3ae to your computer and use it in GitHub Desktop.
Save anonymous/f01985e5570dcdcfa3ae to your computer and use it in GitHub Desktop.
My second script // source http://jsbin.com/hagada
<!DOCTYPE html>
<html>
<head>
<title>My second script</title>
<script src="script02.js"></script>
</head>
<body>
<h1 id="helloMessage">
</h1>
<script id="jsbin-javascript">
window.onload = writeMessage;
function writeMessage() {
document.getElementById("helloMessage").innerHTML = "Hello, world!";
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">window.onload = writeMessage;
function writeMessage() {
document.getElementById("helloMessage").innerHTML = "Hello, world!";
}</script></body>
</html>
window.onload = writeMessage;
function writeMessage() {
document.getElementById("helloMessage").innerHTML = "Hello, world!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment