HELP! * GREY=local LOCAL HTML version of Foils prepared 26 February 1996

Foil 44 Some JavaScript Examples -- II

From CPS616 Lectures on JavaScript CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. by Geoffrey C. Fox * See also color IMAGE

<a href="" onClick="top.seturl(this,'nextitem27.html')" onMouseOver="window.status='this is a Test of onMouseOver'; return true">Exciting Item 27</a>
Note this very typical use of onCLick in <a > link.
set href to be anything including "" -- don't leave out otherwise won't be a link -- will be anchor instead -- this insures that link blue!
set href and target frame in onClick Event handler
This is is how you get indices to work
  • put seturl in top document defining frames
  • <a > links are in index frame and onClick there allows seturl to load required document into mainframe -- the main display frame
function seturl(name,file) {
name.target="top.mainframe";
name.href = checkurl("http://www.npac.syr.edu/wisdom/",file); }



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 Tue Feb 18 1997