Basic HTML version of Foils prepared 16 June 98

Foil 21 JavaScript URLs

From Overview of Advanced JavaScript -- Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 98. by Tom Scavo,Geoffrey C. Fox

JavaScript URLs for Foil 21
1 A trivial example of a JavaScript URL is javascript:alert("Hello World!")
2 A JavaScript URL may appear anywhere an ordinary URL is expected: <A HREF="javascript:history.back()">Previous Page</A>
3 Navigator even has a mini-scripting environment invoked by typing javascript: into the browser's location text field

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 Nov 29 1998