Just finished my new experiment with HTML5 Web Components and Mozilla X-Tags, called X-Password. What you get is a JavaScript-less extended password input, allowing Windows 8-like password reveal behavior out of the box:
[sourcecode language=”javascript”]
<acidjs-xpassword></acidjs-xpassword>
[/sourcecode]
The input supports all JavaScript getters, setters, events and form submission is handled natively. X-Password does not have any required attributes, but to achieve different behaviors you may play with the following (and also any other HTML attribute).
width – Optional input width, default: 300name – Optional input nameid – Optional input idenabled – Boolean, optional. Default: trueeditable – Boolean, optional. Default: trueplaceholder – Placeholder text, optional.value – Optional default valuebuttonhint – Optional tooltip for the reveal buttonvisible – Optional, boolean. If set to true, the input will be rendered as text typeYou can check the demo and download X-Password on this page, and if you are interested in the exciting world of HTML5 Web Components, you may check my other posts dealing with this technology.
Have a great weekend!
© 2006 - 2026 Martin Ivanov