Vidyalelo
JavaScript · Q14

Sockets

Programming · JavaScript · question 14

Q14

How will you update the URL displayed in the location bar?

A.
location
B.
location.URL
C.
location.hash
Answer
D.
url

Answer: Option C

Solution

Answer: Option C
Solution:
The property location.hash needs to be updated to display the updated URL in the location bar.