What\'s the difference between clicking on:
vs.
calling window.location.href = ...
window.location.href = ...
?
In addition to the other answers given, clicking on an element with the href attribute sapecified will cause the browser to navigate to the URL in the href, regardless of whether JavaScript is enabled or not.
href