Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2015 19:01
Show Gist options
  • Save anonymous/00bd761b1ec3fe57d288 to your computer and use it in GitHub Desktop.
Save anonymous/00bd761b1ec3fe57d288 to your computer and use it in GitHub Desktop.
My second script // source http://jsbin.com/puvaxo
<!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>
#helloMessage {color: red};
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