Welcome to the forums
window.location.href is a property that will tell you the current URL location of the browser. Setting the property to something different will redirect the page.
So what is it exactly that you are trying to achieve?
Could you be a little more specific?