Created
November 5, 2015 19:01
-
-
Save anonymous/00bd761b1ec3fe57d288 to your computer and use it in GitHub Desktop.
My second script // source http://jsbin.com/puvaxo
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> | |
<style id="jsbin-css"> | |
#helloMessage {color: red}; | |
</style> | |
</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-css" type="text/css">#helloMessage {color: red};</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
#helloMessage {color: red}; |
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