Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>HTML DOM Events</h1> <h2>The focus Event</h2> <p>Clear the input field when it gets focus:</p> <input type="text" onfocus="this.value=''" value="Blabla"> </body> </html>