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

How will you update the URL displayed in the location bar?
A. location
B. location.URL
C. location.hash
D. url
 
Answer: c
Explanation: The hash property sets or returns the anchor part of a URL, including the hash sign (#). The property location.hash needs to be updated to display the updated URL in the location bar.
 

Tìm kiếm

Back
Top