| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <p>Focus field with a placeholder, then type.</p> | |
| <div> | |
| <input id=i1 value="Text"> | |
| <script> | |
| document.getElementById('i1').focus(); | |
| document.getElementById('i1').setSelectionRange(4, 4); | |
| </script> | |
| </body> | |
| </html> |