Possible Duplicate:
Javascript: Setting window.location.href versus window.location
When I tested these code in browser it seems like they are the same. Is there any difference?
1
window.location = "http://stackoverflow.com";
2
window.location.href = "http://stackoverflow.com";