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> Homepage: <input type="url" id="myURL" placeholder="URL"> <p>Click the button to change the placeholder text of the URL field.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myURL").placeholder = "Type URL here.."; } </script> </body> </html>