A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder below:

HTMLInputElement: placeholder property - Web APIs

HTMLInputElement: placeholder property

Baseline Widely available

The placeholder property of the HTMLInputElement interface represents a hint to the user of what can be entered in the control. It reflects the <input> element's placeholder attribute.

In this article Value

A string.

Examples

js

const inputElement = document.getElementById("phone");
console.log(input.placeholder);
Specifications Browser compatibility

Loading…

See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.5