HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 16 JavaScript URL's

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * Critical Information in IMAGE
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 Sat May 24 1997