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

Foil 19 JavaScript URL's

From Feb 12 Delivered Lecture for Course CPS616 -- Basic JavaScript Functionalities and Examples CPS616 spring 1997 -- Feb 12 1997. by Geoffrey Fox * Critical Information in IMAGE
Secs 18.7 Addon
One can demonstrate JavaScript as an interpreter by typing JavaScript: into location text bar of your browser.
  • This gives a two frame window where you can directly type JavaScript and see response
One can use a similar capability in HREF and other atrribute definitions
  • <a href="javascript:history.go(-1)">Go Back One Step</a>
  • This loads the last page visited in being clicked
  • Using history.go(0) would reload current page
The JavaScript Manual describes some interesting Image Map Examples including:
  • <MAP name="buttonbar">
  • <AREA shape="rect" coords="0,0,16,14"
  • HREF="javascript:top.dosomething();
  • top.frames[1].location='URLtobeloadedintoanotherframe.html';" >
  • </MAP>


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