Skip to content

Instantly share code, notes, and snippets.

@tfer
Forked from anonymous/index.html
Created November 5, 2015 19:10
Show Gist options
  • Save tfer/5757c25e10699cff51ff to your computer and use it in GitHub Desktop.
Save tfer/5757c25e10699cff51ff to your computer and use it in GitHub Desktop.
My third script // source http://jsbin.com/biyoca
<!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 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