Prop Url Value
# Input URL value Property
[ Input URL Object](#)
## Example
Change the value of the URL field:
```javascript
document.getElementById("myURL").value = "http://www.google.com";
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The value property is used to set or return the value of the value attribute of a URL field.
The value property describes the value entered by the user, or the default value, or the value entered by a script.
* * *
## Browser Support

The value property is supported in all major browsers.
**Note:** Internet Explorer or Safari browsers do not support the HTML element with type="url".
* * *
## Syntax
Return the value property:
_urlObject_.value
Set the value property:
_urlObject_.value=_URL_
## Property Values
| Value | Description |
| --- | --- |
| _URL_ | Describes an absolute URL address (e.g., "http://www.w3cschool.cc") |
## Technical Details
| Return Value: | A string, representing the value of the URL field |
| --- |
* * *
## More Examples
## Example
Get the value of the URL field:
```javascript
var x = document.getElementById("myURL").value;
The _x_ output will be:
[Try it Yourself Β»](#)
* * *
## Related Pages
HTML Reference: (#)
* * Input URL Object](#)
YouTip