JavaScript run in a browser has access to both the Document.location and Window.location which has a href property containing the whole URL associated with the content.
JavaScript run in a browser has access to both the Document.location
and Window.location
which has a href
property containing the whole URL associated with the content.