An example of a script-only form is small form which sets the color of the current web page:
|this code||produces this|
<FORM> <SELECT onChange="document.bgColor=this.options[this.selectedIndex].value" > <OPTION VALUE="FFFFFF">White <OPTION VALUE="FF0000">Red <OPTION VALUE="00FF00">Green <OPTION VALUE="0000FF">Blue </SELECT> </FORM>
A more extensive example is this form which calculates the properties of various geometric figures:
This form also demonstrates that even a relatively simple script-based form requires lengthy script coding. Take a look at the source code for this form.
Copyright 1997-2002 Idocs Inc.