Node Notes

SSH Notes

function

{title} {text}

Javascript Function

The two functions were placed in the head scriptt; element while the function calls were placed right before the ending /body tag.<br>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd" >
<html>
<head>
<title>First Javascript</title>
<script language="javascript" type="text/javascript">
function sayBandName()
{
document.write("Journey rules!<br/>");
}
function sayBye()
{
document.write("Buh Bye!");
}
</script>
</head>
<body>

<script language="javascript" type="text/javascript">
//Output to the browser
document.write("<strong>Hello World from Javascript.</strong>");
document.write("<br/>This is my first Javascript program!<br/>");
sayBandName();
sayBye();
</script>
</body>
</html>

0
0
0
s2smodern

| |

Copyright © 2017. All Rights Reserved.

/** *
SiteLock
*/