运行 ❯
获取你自己的网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> E-mail: <input type="email" id="myEmail" placeholder="Email adr"> <p>Click the button to change the placeholder text of the email field.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myEmail").placeholder = "Your email address"; } </script> </body> </html>