window.location call popup up empty dialog on safari

Posted by memical on Stack Overflow See other posts from Stack Overflow or by memical
Published on 2010-04-21T19:27:38Z Indexed on 2010/04/21 19:33 UTC
Read the original article Hit count: 173

Hi,

on a web page i am trying to redirect the browser to another page on the same site. the code is very simple for that:

window.location = "/path1/path2"

on safari - both windows as well as mac - a message box containing only the text

"http://domain.com"

comes up.

I have tried different ways of specifying this: location.href, windows.assign(...) ... and the all have the same behavior.

Did any of you see this? and do you have a solution for this?

Thanks.

© Stack Overflow or respective owner

Related posts about safari

Related posts about JavaScript