OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <p>Focus field with a placeholder, then type.</p> | 6 <p>Focus field with a placeholder, then type.</p> |
7 <div> | 7 <div> |
8 <input id=i1 value="Text"> | 8 <input id=i1 value="Text"> |
9 <script> | 9 <script> |
| 10 document.getElementById('i1').focus(); |
10 document.getElementById('i1').setSelectionRange(4, 4); | 11 document.getElementById('i1').setSelectionRange(4, 4); |
11 </script> | 12 </script> |
12 </body> | 13 </body> |
13 </html> | 14 </html> |
OLD | NEW |