Prop Url Disabled
# Input URL disabled Property
[ Input URL Object](#)
## Example
Disable the URL field:
```javascript
document.getElementById("myURL").disabled = true;
Output Result:
[Try it Β»](#)
* * *
## Definition and Usage
The disabled property is used to set or return whether a URL field is disabled.
An element with the disabled attribute is unusable and unclickable. Disabled elements are typically rendered in gray in browsers.
This property reflects the HTML disabled attribute.
* * *
## Browser Support

The disabled property is supported by all major browsers.
**Note:** Internet Explorer or Safari browsers do not support the HTML element with the type="url" attribute.
* * *
## Syntax
Return the disabled property:
```javascript
_urlObject_.disabled
Set the disabled property:
```javascript
_urlObject_.disabled=true|false
## Property Values
| Value | Description |
| --- | --- |
| true|false | Describes whether the URL field is available. * true - The URL field is not available. * false - Default. The URL field is available. |
## Technical Details
| Return Value: | A Boolean. Returns true if the URL field is not available, otherwise returns false. |
| --- |
* * *
## More Examples
## Example
Check if the URL field is available:
```javascript
var x = document.getElementById("myURL").disabled;
The output of _x_ will be:
```text
true
[Try it Β»](#)
## Example
Disable or enable the URL field:
```javascript
function disableBtn() {
document.getElementById("myURL").disabled = true;
}
function undisableBtn() {
document.getElementById("myURL").disabled = false;
}
[Try it Β»](#)
* * *
## Related Pages
HTML Reference: (#)
* * Input URL Object](#)
YouTip