Advertisement
Web Developer Resources
You Are Here: ESQSoft.com ¬ javascript-help ¬ JavaScript Help: LOCATION Object
E.S.Q. Software Logo

Javascript Help: LOCATION Object

JavaScript can be used to access a number of DOM (Document Object Model) Objects. Here is the LOCATION object and it's internals.

https://esqsoft.com/javascript-help/javascript-location-object
PropertyValue
ancestorOrigins[object DOMStringList]
hrefhttps://esqsoft.com/javascript-help/javascript-location-object
originhttps://esqsoft.com
protocolhttps:
hostesqsoft.com
hostnameesqsoft.com
port
pathname/javascript-help/javascript-location-object
search
hash
assignfunction assign() { [native code] }
reloadfunction reload() { [native code] }
replacefunction replace() { [native code] }
toStringfunction toString() { [native code] }
Script: Expose (expose DOM element) -- << click here to copy code >>
More Web Stuff: Tools, How-To, Design, Games, Hosting @ http://www.esqsoft.com

Tip: This example uses a small script library to expose the properties and methods of a passed object. You can use it from where it lives on the web during your own development, or download it and tweak to suite your needs. View the source of expose.js for additional info. Here's an example of it's usage:

<script src="https://esqsoft.com/tools/expose.js"></script> <script>expose(location)</script>

Related Keywords: define, javascript, location, object

Advertisement
Advertisement
StatCounter - Free Web Tracker and Counter