English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML DOM baseURI Property

HTML DOM Document Object

baseURIA read-only property that returns the basic URI of the HTML document.

Syntax:

document.baseURI
var url = document.baseURI;
Test See‹/›

Browser Compatibility

The numbers in the table specify the first browser version that fully supports the baseURI property:

Property
baseURI239.64Not Supported

Technical Details

Return Value:A string representing the URI of the current page
DOM Version:DOM Level3

HTML DOM Document Object