The base is dynamically set in php when an HTML page is built:\[code\]$base_line = '<base href="' . $some_path . '/" /> ';echo $base_line;\[/code\]Now that I am in the HTML page I need to access this information ($some_path) and after searching for a few hours I don't seem to find an answer. Please note that the loaded HTML page has a URL that is not related to the base and I don't have access to the PHP code to modify it. The loaded page could have a URL like: http://xyz.com/index.php, but all other links in the page will be based on the value set by the base so I can't get the base using the page URL.I suppose I could grab one of the elements like an image and dissect it using DOM to find the base, but there should be an easier way to do this. Any ideas?Using window.location doesn't work in this situation as it will return what is related to the loaded page URL and not what has been set as base within it.