#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Input type text to input type password?


    Hello to all,

    first time poster and javascript noob, so please don't be too harsh

    I have just seen a page on a website that has a form with an input that switches between type text to type password whenever you click on it. I want the same on my personal website.

    I guess this is achieved with javascript but how is it done? I can't fiugre it out as I'm a complete beginner with javascript.

    The page in question is this hostinghood.com
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4303
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo