Input URL placeholder attribute

Definition and usage

placeholder Sets or returns the value of the placeholder attribute of the URL field.

The HTML placeholder attribute specifies a brief hint that describes the expected value of the URL field (for example, a sample value or a brief description of the expected format).

A short hint will be displayed in the text field before the user enters a value.

This attribute reflects the HTML placeholder attribute.

See also:

HTML reference manual:HTML <input> placeholder প্রতিভাতা

Example

Example 1

Change the placeholder text of the URL field:

document.getElementById("myURL").placeholder = "Please enter the URL here...";

Try it yourself

Example 2

Get the placeholder text of the URL field:

var x = document.getElementById("myURL").placeholder;

Try it yourself

Syntax

Return placeholder attribute:

urlObject.placeholder

set placeholder attribute:

urlObject.placeholder = text

প্রতিভাতা

মান বর্ণনা
text URL ফিল্ডের প্রত্যাশিত মানকের স্বল্প টিপপট বর্ণনা (শব্দ বা ছোট পংক্তি) নির্দিষ্ট করা হয়。

প্রযুক্তিগত বিবরণ

ফলাফল: শব্দমালা মান, যা URL ফিল্ডের প্রত্যাশিত মানকের স্বল্প টিপপট বর্ণনা করে。

ব্রাউজার সমর্থন

চ্রোম এডজ ফায়ারফক্স স্যাফারি অপেরা
চ্রোম এডজ ফায়ারফক্স স্যাফারি অপেরা
সমর্থন 10.0 সমর্থন সমর্থন না সমর্থন