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

    Join Date
    Feb 2013
    Rep Power

    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
    USA (verifiably)
    Rep Power
    Spreading knowledge, one newbie at a time.

    Learn CSS. | PHP includes | HTML Validator | CSS validator

    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