Intro To Javascript
Intro To Javascript
<body onload="message()">
</body>
</html>
SEE NEXT SLIDE FOR RUN
PROGRAM RUN
Scripts in the head section:
Scripts to be executed when they are called,
or when an event is triggered, go in the
head section. When you place a script in the
head section, you will ensure that the script
is loaded before anyone uses it.
http://www.w3schools.com/js/js_function_inv
ocation.asp
Scripts in the body section:
Scripts to be executed when the page loads go
in the body section. When you place a script
in the body section it generates the content
of the page.
Using an External JavaScript