password mode

how can I  change to textbox to password mode on javascript? you cannot set emtpy message property and the textmode = password in same time thats why I am asking on javascript... This is RadTextbox.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1jawsAuthor Commented:
only third one made sense, I dont want to use Watermark.. What I need  Use Textmode = Singleline Then onfocus change type of textbox textmode to password... how can I write that function?
you can't change text mode (type attribute of an input)
instead use two RadTextbox at the same position (use css margin-top & margin-left on the password)
onfocus display the password, hide the text
onblur hide the password, display the text
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Use a DIV with textbox and change innerHTML as below example:

<title>Change Textbox To Password Type</title>
<SCRIPT language=JavaScript type=text/javascript>

     var passStr = "Text Mode = PASSWORD <br>";
     passStr = passStr + "<input type='password'>";

     var normStr = "Text Mode = NORMAL <br>";
     normStr = normStr + "<input type='text' id='txt_norm' value='TYPE Something' onFocus='clearText(this.value)'>";

 function textNorm() {
     document.getElementById('mode_box').innerHTML = normStr;
 function textPass() {
     document.getElementById('mode_box').innerHTML = passStr;
 function clearText(textVal) {
     if (textVal == 'TYPE Something') document.getElementById('txt_norm').value = "";

<input type='button' value='TEXT MODE' onClick='textNorm()'>
<input type='button' value='PASS MODE' onClick='textPass()'>
<div id='mode_box'>
Text Mode = Normal
<input type='text' id='txt_norm' value='TYPE Something' onFocus='clearText(this.value)'>
1jawsAuthor Commented:
thank you for replying, i will look at that...
HainKurtSr. System AnalystCommented:
"you cannot set emtpy message property and the textmode = password in same time"

are you sure about this?

text="" textmode = "password"

1jawsAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.