Prop Email Placeholder
# HTML DOM Input Email placeholder Property
[!(#) Input Email Object](#)
## Example
Change the placeholder text for an email field:
document.getElementById("myEmail").placeholder = "Your Email address";
[Try it yourself Β»](#)
* * *
## Definition and Usage
The `placeholder` property sets or returns the value of the `placeholder` attribute of an email field.
The `placeholder` property provides a short hint that describes the expected value of an input field.
The hint is displayed in the field when it is empty, and disappears when the field gets focus.
* * *
## Browser Support
!(#)!(#)!(#)!(#)!(#)
The `placeholder` property is supported in all major browsers.
**Note:** The `placeholder` property is not supported in Internet Explorer 9 and earlier versions.
* * *
## Syntax
Return the `placeholder` property:
```javascript
emailObject.placeholder
Set the `placeholder` property:
```javascript
emailObject.placeholder=text
## Property Values
| Value | Description |
| --- | --- |
| _text_ | A short hint that describes the expected value of an input field |
## Technical Details
| Return Value: | A String, representing the short hint that describes the expected value of an input field |
| --- |
* * *
## More Examples
## Example
Get the placeholder text of an email field:
```javascript
var x = document.getElementById("myEmail").placeholder;
The value of _x_ will be:
Email
[Try it yourself Β»](#)
* * *
## Related Pages
HTML Reference: (#)
* * Input Email Object](#)
YouTip