When would you set location to a URL string versus setting location.href?
location
location.href
location = \"http://www.stackoverflow.com\";
Even if both work, I would use the latter. location is an object, and assigning a string to an object doesn't bode well for readability or maintenance.