javascript window.location and JS Frame error -


I am trying to redirect a page via javascript:

  Window.location ('http://www.google.com');  

But in Firefox, I'm getting this error:

  error: exception exception: [exception ... "Convert to Convert Can not convert "nsresult:" 0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN) "Location:" JS frame :: [URL of my page] :: Anonymous :: Line 1809 "data: no]  

And, well, I do not have the idea What does this mean the JS frame? I'm not using any frame on the page.

Stumped.

Do this like this:

  window.location.href = 'Http://www.google.com';  

Comments