Window.location Call Popup Up Empty Dialog On Safari
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
Solution 1:
take a look at this question. You should use:
location.href = 'url';
Solution 2:
thanks all for you help.
i found the problem. Before setting window.location somewhere in the call chain one function would make an ajax request.
It seem that due to some changes the request now takes longer then before. So if the location was changed during the ajax req., the empty message box would appear.
Memi.
Solution 3:
you should show the complete code. For example THIS bad code
<ahref="javascript:window.open()">Click</a>
will show [OBJECT] when clicked.
If your script is just
<script>window.location='someurl';
</script>
then there is something else going on - I have just test this in Safari on my Mac
<script>window.location='http://www.google.com'</script>
Post a Comment for "Window.location Call Popup Up Empty Dialog On Safari"