When would you set location to a URL string versus setting location.href?

location = "http://www.stackoverflow.com";

vs

location.href = "http://www.stackoverflow.com";

Mozilla Developer Network Reference

8 Answers
8

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *