JavaScript Tutorial/Form/Focus

Материал из Web эксперт
Перейти к: навигация, поиск

Set Form focus

   <source lang="javascript">

<html> <head> <title>Set Form focus</title> <script type="text/javascript" language="javascript">

</script> </head> <body onload="SetFocus()"> <form name="SimpleForm">

Enter first number: <input name="FirstInput" type="text">
Enter second number: <input name="SecondInput" type="text">
Enter third number: <input name="ThirdInput" type="text">
  <button type="Button" onclick="FindMaxAndMin()"> Click to calculate</button>

</form> </body> </html></source>