HTML Form value appears selected

Discussion in 'HTML & Website Design' started by jrp1, Jan 16, 2009.

  1. #1
    The following code:

    <input id="address_box" type="text" name="<?php echo $GLOBALS['_config']['url_var_name'] ?>" value="http://www." onfocus="this.select()" />
    Code (markup):
    selects the value "http://www." whenever I visit my website. Is there a way for that value to retain in it's respective form, but for it to load deselected?

    If that doesn't make sense, look at this picture:
    http://www.imagedash.com/uploads/jdv1232144811m.png

    Thanks in advance.
     
    jrp1, Jan 16, 2009 IP
  2. katendarcy

    katendarcy Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried removing "onfocus="this.select()"?
     
    katendarcy, Jan 16, 2009 IP
  3. jrp1

    jrp1 Active Member

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    do'h. thanks.
     
    jrp1, Jan 20, 2009 IP
  4. katendarcy

    katendarcy Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No worries. Glad to help. Take care. : )
     
    katendarcy, Jan 20, 2009 IP