HTML <keygen> autofocus Attribute
The HTML <keygen> autofocus Attribute is used to specify that the <keygen> element should get focused when the page loads. It is a boolean attribute.
Note: It supports only the following elements: <button>, <input>, <select> and <textarea>
Example: Below example illustrates the autofocus attribute of the <keygen> element.
- Google Chrome 13.0
- Opera 11.0
- Safari 6.0
- Internet Explorer Not supported
- Firefox Not supported
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.