Basic HTML version of Foils prepared 23 June 1997

Foil 9 JavaScript "Hello World" Example - II

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo

Simple JavaScript HTML Manipulation for Foil 9
There is only one real JavaScript statement here, namely
document.writeln("textstring");
This statement outputs into current page the quoted text followed by a newline
Note the rather peculiar way we "hide" JavaScript from browsers that don't understand it by inserting a conventional HTML comment:
<SCRIPT LANGUAGE="JavaScript">
<!-- a comment to hide JavaScript from old browsers
// Insert JavaScript statements here
// end script hiding -->
</SCRIPT>
Depending on your needs, JavaScript may be written in <HEAD> or <BODY> section of HTML document



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998