Why does window.location.toString() report the same as window.location.href?
<p>The window.location is an object. But when you execute window.location.toString() it converts the object to the equivalent to window.location.href.</p>

<p>My question is how? And can I set up objects to a similar behaviour?</p>
