Is there a way to show text in dots format using HTML, similar to how it appears in a password field, like this:
Password: <input type="password" name="pwd">This text looks like dots</input>
Without relying on an <input>
? I'm interested in applying the obscured appearance of a password field outside of a form input.
Imagine a scenario where a webpage is displaying a salary figure and you don't want to present the information within a textbox. It should give the impression that the content is not editable, but at the same time remain hidden when the page loads to prevent unauthorized viewers from accessing it. The text should initially display as "Salary: ●●●●●●●● (click to view)" and then reveal the actual value as "Salary: 54372.23 (click to hide)".