JavaScript Location Object Properties

JavaScript Location Object Properties In this JavaScript Tutorial you will learn about Properties of Location Object – hash, host, hostname, href, pathname, port, protocol and search property The Location object contains information about the current URL. This representation is a string that denotes the different portions of the URL as below: <protocol>//<host>[:<port>]/<pathname>[<hash>][<search>] The location object has a number of properties and methods in it. The usage, syntax and explanation with examples of each of the properties and methods of the Location object are explained in this section and the following sections. Properties of Location Object: hash: The hash property of…