web api instance property
HTMLTextAreaElement: placeholder property
The placeholder property of the HTMLTextAreaElement interface represents a hint to the user of what can be entered in the control. It reflects the <textarea> element’s placeholder attribute.
Value
A string.
Examples
const textareaElement = document.getElementById("comment");
console.log(textArea.placeholder);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.