<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 |