When would you set location to a URL string versus setting location.href?
location
location.href
location = \"http://www.stackoverflow.com\";
Just to clarify, you can't do location.split('#'), location is an object, not a string. But you can do location.href.split('#'); because location.href is a string.
location.split('#')
location.href.split('#');