JavaScript Tutorial/Form/this

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

Use this to reference current form

   <source lang="javascript">

<html> <head> <title>Testing this</title> </head> <body>

Testing this

<form action="http://www.wbex.ru">

 <input type="text" name="emailAD" size="15" value="Email Address" onfocus="this.value=""">
 
<submit value="Subscribe">

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