1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <title>Javascript Enhanced Page
</title>
8 <form id=
"form1" action=
"javascriptEnhancedForm.html" method=
"post">
10 <label id=
"labelforusername" for=
"username">
11 Username:
<input id=
"username" type=
"text" name=
"username" />
12 <script type=
"text/javascript">
13 document
.getElementById('username').value
= 'Michael';
18 <label for=
"password">
19 Password:
<input id=
"password" type=
"password" name=
"password" />
20 <script type=
"text/javascript">
21 var z
= document
.getElementById('password'); setTimeout('try{z.focus();z.select();} catch(e) {}', 1);
26 <input type=
"submit" value=
"Submit" />