-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
Is there a way to change the autocomplete of a textbox with password type to false?
Thank you!
You can use the client/attribute namespace https://www.zkoss.org/wiki/ZUMLReference/ZUML/Namespaces/ClientAttribute
This lets you define arbitrary attributes on the DOM node of the component, such as the autocomplete attribute.
In Java, you can use the component#setClientAttribute method.
Just a word of warning though: While this is objectively the correct syntax and use case for the autocomplete attribute, a lot of web browsers will just ignore this attribute, on the grounds that password autocomplete is a user-defined feature, and not under the purview of the website itself.
Asked: 2022-12-14 01:23:38 +0800
Seen: 4 times
Last updated: Dec 15 '22