Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <form action="/action_page.php">
  6. First name: <input type="text" name="fname" autofocus><br>
  7. Last name: <input type="text" name="lname"><br>
  8. <input type="submit">
  9. </form>
  10.  
  11. <p><strong>Note:</strong> The autofocus attribute of the input tag is not supported in Internet Explorer 9 and earlier versions.</p>
  12.  
  13. </body>
  14. </html>
  15.  
  16. <script>
  17. jQuery(document).ready(function($) {
  18. $('').focus();
  19. });
  20.  
  21. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement