<html> <head> <title>Gaps</title> <script langauge="javascript"> function start() { __A________________________________________________; } function validate( event ) { if ( B_____{ event.preventDefault(); C__________________; alert( "Wrong format for age!" ); } } </script> </head> <body onload="start()"> <form method="post" action="/cgi-bin/prob3.cgi"> <p> Your age: <input name="age" type="text"> <p> <input type="reset"> <input type="submit" value="Submit"> </form> </body> </html>
A---Make the function validate a listener for the submit event(for the + form element). B--- An expression that is true if the value of the textbox does not c +ontain one to three digits. C--Select the text box.
In reply to (dup) fill gaps: struggled 3 days,no result by zhshqzyc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |