zig.com Result Size: 625 x 565
x
 
<!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>
<!-- /jsref/tryit.asp?filename=tryjsref_email_placeholder Thu, 06 Feb 2025 20:01:05 GMT -->
</html>