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

in Table To:


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