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

Foil 58 JavaScript Form Example

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * Important Information in 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 Wed Feb 19 1997