OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | |
2 | |
3 <html> | |
4 <head> | |
5 <title>Javascript Enhanced Page</title> | |
6 </head> | |
7 <body> | |
8 <form id="form1" action="javascriptEnhancedForm.html" method="post"> | |
9 <p> | |
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'; | |
14 </script> | |
15 </label> | |
16 </p> | |
17 <p> | |
18 <label for="password"> | |
19 Password: <input id="password" type="password" name="passwor
d" /> | |
20 <script type="text/javascript"> | |
21 var z = document.getElementById('password'); setTimeout(
'try{z.focus();z.select();} catch(e) {}', 1); | |
22 </script> | |
23 </label> | |
24 </p> | |
25 <p> | |
26 <input type="submit" value="Submit" /> | |
27 </p> | |
28 </form> | |
29 </body> | |
30 </html> | |
OLD | NEW |