HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 21 February 97

Foil 4 Hello World Example of JavaScript- II

From Feb 12 Delivered Lecture for Course CPS616 -- Basic JavaScript Functionalities and Examples CPS616 spring 1997 -- Feb 12 1997. by Geoffrey Fox * See also color IMAGE
Secs 289.4 Addon
There is only one real JavaScript statement here -- namely
document.writeln("textstring");
This outputs into current page the text in quotes followed by a newline
And note the rather peculiar way we "hide" JavaScript from browsers that can't understand it by enclosing in convential HTML Comment syntax
<SCRIPT LANGUAGE="JavaScript" >
<!-- A Conventional comment to hide JavaScript from old browsers
...... Bunch of JavaScript Statements .......
//scriptend-->
</SCRIPT>
Note depending on your needs, JavaScript can be in Header or Body section of 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 Fri Feb 21 1997