What is the most reliable way to grab the URL base for a document?
I can get window.location .protocol + window.location .host +
window.location .path... and that would work most the time, but if the
<BASE> tag is used, the URL base changes to that tag.
Is there a one-stop-shop location to retreive the URL base of the document?
Thanks,
Brian
I can get window.location .protocol + window.location .host +
window.location .path... and that would work most the time, but if the
<BASE> tag is used, the URL base changes to that tag.
Is there a one-stop-shop location to retreive the URL base of the document?
Thanks,
Brian
Comment