<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>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_email_placeholder by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:17 GMT -->
</html>