Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts

    put the cursor on form_box1

    Code:
    <form action="action.php">
    		
    <input name="form_box1" 
             value="" 
             type="text" 
             size="15">
      
      <input type="submit" value="Submit">
      
    </form>
    I have the above code.

    when I open the file by browser,
    I like to make the cursor on the input box named "form_box1"

    How can I do it?
    Get my greedy up

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    try this
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    
    <body onload="document.form1.form_box1.focus()">
    <form name="form1" action="action.php">
    		
    <input name="form_box1"
             value="" 
             type="text" 
             size="15">
      
      <input type="submit" value="Submit">
      
    </form>
    </body>
    </html>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •