Q:

window.location.href in firefox

Can you please tell me why window.location.href is not working on firefox?
Code:
<script>

     function goToURL() {
           window.location.href('url');
     }

</script>

What can I use instead of window.location.href as an alternative?

A:

This should work in both IE and FireFox:
window.location.assign(url);

