People also ask
What do you need to know about location href?
Location href Property 1 Definition and Usage. The href property sets or returns the entire URL of the current page. 2 Browser Support 3 Syntax 4 Property Values. Specifies the URL of the link. 5 Technical Details 6 More Examples
What is the href property of the location interface?
The href property of the Location interface is a stringifier that returns a USVString containing the whole URL, and allows the href to be updated. Setting the value of href navigates to the provided URL.