Which is not the property of location object?

Which is not the property of location object?
A. origin
B. port
C. host
D. geolocation
 
Answer: d
Explanation: 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.
 

Tìm kiếm

Back
Top