My program should display '*' when entering a password to a text box by a user. How to do that?

Recommended Answers

All 4 Replies

Hi,
you can try this:

<input type="password" id="pw" name="pw" value="123456" size="25" maxlength="12" />

Yes, simply put input type="password" because browser understands that it is a password field. Browser by default shows * for that password field.

Thanks

Member Avatar for rajarajan2017

Small html child will say that <input type="password">, I hope you asking this in html.

My program should display '*' when entering a password to a text box by a user. How to do that?

just simply put type="password"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.