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

Foil 43 Some JavaScript Examples -- I

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

<form>
To test tree of knowledge
<input type="text" name="data" size=30 onFocus="window.status='this is a Test of onFocus'; return true">
<input type="button" value="clickit!" onClick="top.dosomething('This is a Test of onClick')" >
</form>
This shows a couple of simple form elements with onFocus and onClick illustrated
window.status is property holding message at bottom of browser window
One would typically have onChange handler as well in text field. Note that with these handlers one does NOT need server side CGI script to process form



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