|
Webteacher Software now offers
The Form is a JavaScript user's best
friend. Forms can be used to input
text, to display results, and to trigger JavaScript functions. The form in our example used 2 objects, a text box, and a button. All forms start with the tag <FORM> and end with </FORM>.
The text box should include a NAME and a TYPE <INPUT NAME="text1" TYPE=Text>
The button is how we tell JavaScript to run a particular function.
The button should include a NAME, TYPE, VALUE, and ONCLICK command.
<INPUT NAME="submit" TYPE=Button VALUE="Show Me" onClick="MsgBox(form.text1.value)"> <BODY>
<FORM> <INPUT NAME="text1" TYPE=Text> </FORM>
</BODY>
| ||
Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room |