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;

Try it yourself

Example 2

Set the maximum number of characters allowed in the URL field:

document.getElementById("myURL").maxLength = "8";

Try it yourself

Syntax

Return maxLength attribute:

urlObject.maxLength

set maxLength attribute:

urlObject.maxLength = اعداد

کیفیت

مقدار وصف
اعداد URL کے حقل میں اجازت شدہ سب سے زیادہ اعداد کو مقرر کرتا ہے۔ طبعی مقدار 524288 ہے۔

تکنیکی تفصیلات

بازگشت: اعداد، یہ URL کے حقل میں اجازت شدہ سب سے زیادہ اعداد ہیں。

بھرپائی کا بندوبست

کروم ایج فائر فاکس سافری آپریا
کروم ایج فائر فاکس سافری آپریا
پشتیبانی کیاجاتا ہے 10.0 پشتیبانی کیاجاتا ہے پشتیبانی نہیں کیاجاتا ہے پشتیبانی کیاجاتا ہے