1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

form fields & mozilla

Discussion in 'General Internet' started by catphan, 2003/06/23.

Thread Status:
Not open for further replies.
  1. 2003/06/23
    catphan

    catphan Inactive Thread Starter

    Joined:
    2003/06/23
    Messages:
    2
    Likes Received:
    0
    on this page, www.eskador.com/dev , we have a submit button and a text field for your email address. in Safari & IE, the field clears when you highlight it, but mozilla does not. i tried all the gecko browsers and it does not work. any ideas?? the submit is parsed with asp.
     
  2. 2003/06/24
    Alice

    Alice Banned

    Joined:
    2002/01/08
    Messages:
    938
    Likes Received:
    0
    Sorry no one has answered. I was going to post a reply yesterday but I was hoping someone that knows more about javascript would answer.

    The page sourse for your link shows:
    script language= "Javascript ">
    <!--
    function erase() {
    form1.email.value=" ";
    }
    -->
    </script>

    Then later on,
    <input name= "email" type= "text" class= "unnamed1" id= "email" onfocus= "if (this.value=='you@youremail.com') this.value='';" value= "you@youremail.com" size= "25 ">

    Was the page fixed? I could have sworn that yesterday it was "onclick" and not "onfocus ". In any case, it seems to be working in Mozilla now - when you click inside the e-maik field, the address is erased and you can start typing into the blank field..
     

  3. to hide this advert.

  4. 2003/06/24
    catphan

    catphan Inactive Thread Starter

    Joined:
    2003/06/23
    Messages:
    2
    Likes Received:
    0
    yes, we found the solution. on focus was the answer. Thanks for replying though :)
     
  5. 2003/06/25
    Alice

    Alice Banned

    Joined:
    2002/01/08
    Messages:
    938
    Likes Received:
    0
    You're welcome :)
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.