Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India

ms.location

The location object contains information about the current URL.


Variables

ValueDescription
hashIt sets or returns the anchor part (#) of a URL.
hostIt sets or returns the host name and port number of a URL.
hostnameIt sets or returns the host name of a URL.
hrefIt sets or returns the entire URL.
originIt returns the protocol, host name and port number of a URL.
pathnameIt sets or returns the path name of a URL.
portIt sets or returns the port number of a URL.
protocolIt sets or returns the protocol of a URL.
searchIt sets or returns the query string part of a URL.

Methods

ValueDescription
assignThis method loads a new document.
reloadThe method reloads the current document.
replaceIt replaces the current document with a new one.
absUrlIt returns the full URL representation with all segments encoded according to rules specified in RFC 3986.
pathThe method changes path when called with parameter.

Examples