Basic HTML version of Foils prepared June 30 1996

Foil 74 Hello World Example of JavaScript- II

From A Tutorial on Base Web Technologies CRPC Annual Meeting/NASA Langley/Trip to China -- May 14-17 June 10-13 1996 July 12-18 1996. by Geoffrey Fox


1 There is only one real JavaScript statement here -- namely
2 document.writeln("textstring");
3 This outputs into current page the text in quotes followed by a newline
4 And note the rather peculiar way we "hide" JavaScript from browsers that can't understand it by enclosing in convential HTML Comment syntax
5 <SCRIPT LANGUAGE="JavaScript" >
6 <!-- A Conventional comment to hide JavaScript from old browsers
7 ...... Bunch of JavaScript Statements .......
8 //scriptend-->
9 </SCRIPT>
10 Note depending on your needs, JavaScript can be in Header or Body section of 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 Sun Dec 14 1997