-
-
Save tfer/2fbfe78226cb4564adb2 to your computer and use it in GitHub Desktop.
My second script// source http://jsbin.com/hagada
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>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> |
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 = 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