That error message made it pretty clear, didn't it ? You can't. You need to have 2 elements and toggle them when necessary (hide one, show the other).
-- Ariel Flesler http://flesler.blogspot.com On 25 abr, 11:03, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi guys, > > I have a form input that displays "Enter a password" (value="enter a > password"), which when in focus I would like to convert to a password > field. > > I'm looking for something like this: > > <input type="text" value="enter a password" onFocus="hidePass()" /> > > to > > <input type="password" /> > > I've tried following the API, but I still get "uncaught exception: > type property can't be changed" error in Firebug. > > Any help would be much appreciated. > > - Samuel.