Input URL maxLength Attribute
Definition and Usage
maxLength
Set or return the value of the maxLength attribute of the URL field.
The HTML maxLength attribute specifies the maximum number of characters allowed in the URL field, with a default value of 524288.
Tip:To set or return the width of the URL field (in characters), use size Properties.
See also:
HTML Reference Manual:HTML <input> maxlength বৈশিষ্ট্য
Example
Example 1
Get the maximum number of characters allowed in a specific URL field:
var x = document.getElementById("myURL").maxLength;
Example 2
Set the maximum number of characters allowed in the URL field:
document.getElementById("myURL").maxLength = "8";
Syntax
Return maxLength attribute:
urlObject.maxLength
set maxLength attribute:
urlObject.maxLength = number
বৈশিষ্ট্যমূলক মান
মান | বর্ণনা |
---|---|
number | URL ফিল্ডে অনুমদিত সর্বোচ্চ অক্ষর সংখ্যা নির্ধারণ করে।ডিফল্ট মান 524288। |
প্রযুক্তিগত বিবরণ
ফলাফল: | সংখ্যা, যা URL ফিল্ডে অনুমদিত সর্বোচ্চ অক্ষর সংখ্যা। |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | 10.0 | সমর্থন | সমর্থন না | সমর্থন |