-
-
Save tfer/5757c25e10699cff51ff to your computer and use it in GitHub Desktop.
My third script // source http://jsbin.com/biyoca
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 third script</title> | |
<script src="script03.js"></script> | |
</head> | |
<body> | |
<h1 id="helloMessage"> | |
</h1> | |
<script id="jsbin-javascript"> | |
/* | |
This is an example of a long JavaScript comment. Note the characters at the beginning and ending of the comment. | |
This script adds the words "Hello, world!" into the body area of the HTML page. | |
*/ | |
window.onload = writeMessage; // Do this when page finishes loading | |
function writeMessage() { | |
// Here's where the actual work gets done | |
document.getElementById("helloMessage").innerHTML = "Hello, world!"; | |
} | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<title>My third script</title> | |
<script src="script03.js"><\/script> | |
</head> | |
<body> | |
<h1 id="helloMessage"> | |
</h1> | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">/* | |
This is an example of a long JavaScript comment. Note the characters at the beginning and ending of the comment. | |
This script adds the words "Hello, world!" into the body area of the HTML page. | |
*/ | |
window.onload = writeMessage; // Do this when page finishes loading | |
function writeMessage() { | |
// Here's where the actual work gets done | |
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
/* | |
This is an example of a long JavaScript comment. Note the characters at the beginning and ending of the comment. | |
This script adds the words "Hello, world!" into the body area of the HTML page. | |
*/ | |
window.onload = writeMessage; // Do this when page finishes loading | |
function writeMessage() { | |
// Here's where the actual work gets done | |
document.getElementById("helloMessage").innerHTML = "Hello, world!"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment