Horje

How to add A button with autofocus in HTML Page

The button autofocus attribute.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The button autofocus attribute</h1>

<button type="button" autofocus onclick="alert('Hello world!')">Click Me!</button>

</body>
</html>

Output should be:

How to add A button with autofocus in HTML Page




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin