Use this to reference current form : this « Form « JavaScript Tutorial






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

</head>
<body>

<h1>Testing this</h1>

<form action="http://www.java2s.com">
  <input type="text" name="emailAD" size="15" value="Email Address" onfocus="this.value=''">
  <br /><submit value="Subscribe">
</form>

</body>
</html>








10.5.this
10.5.1.Use this to reference current form