Home » HTML » Html miscellaneous » Question
  1. Which is not the property of location object?
    1. geolocation
    2. origin
    3. port
    4. host
    5. None of these
Correct Option: A

The properties of location object are host, origin, port, pathname, hostname, href, hash, protocol, search. The port number of URL is set by port. The entire URL is set by href, path name of URL is set by pathname property, protocol of URL is set by protocol property.



Your comments will be displayed only after manual approval.