You may want to try using setAttribute(). Don't know if it will work though. http://www.javascriptkit.com/dhtmltutors/domattribute.shtml
Can't help with the delusions though. :) -- Jon mailto:[EMAIL PROTECTED] Tuesday, July 30, 2002, 4:19:09 PM, you wrote: MW> Hi all, MW> Sorry for the off topic post, but I was wondering if anyone knew of a MW> way to change the "type" of a form input on the fly, using JavaScript. MW> For example; I know I can change the value of "value" thusly: MW> onFocus="this.value='My New Value'". I was hoping I could change the MW> input type from text to password, onFocus. Of course MW> onFocus="this.type='password'" did not work for me and I am, in all MW> probability, delusional. :-) Any help would be appreciated! ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

