|
|
MAXLENGTH
First, copy the script from the
previous page into the <HEAD>onKeyPressnumbersonly(). The third argument is the name of the field to jump to when the user presses decimal. In this case, the field is name cents. The cents field itself uses the MAXLENGTH
<FORM ACTION="../cgi-bin/mycgi.pl" METHOD=POST>
price:
<INPUT NAME="dollar" SIZE=5
onKeyPress="return numbersonly(this, event, 'cents')"> <B>.</B>
<INPUT NAME="cents" SIZE=2 MAXLENGTH=2
onKeyPress="return numbersonly(this, event)">
</FORM>
This gives us this form:
|
Recommended Resources |
|||
| web hosting tutorials Credit Help |
Search the Internet Search Engine Help |
Low Fat Lifestyle Internet Traffic |
Web
Hosting Web Design |
|
Discount
Hotel Reservations All
Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003 |
|||