Have you tried:
window.location = 'http://site2.example.com/';

On Aug 12, 1:36 pm, Grimori <mihaigrig...@gmail.com> wrote:
> The problem only exists in firefox. Has anyone had this problem
> before?
>
> Thanks.
>
> On Aug 12, 9:14 pm, Grimori <mihaigrig...@gmail.com> wrote:
>
> > Hi everyone,
>
> > The problem I'm facing is as follows. I'm using a JSON call to check
> > some data before doing a JS redirect to a different page. The redirect
> > works but it's impossible to get back to the initial page using the
> > browser's back button. The initial location is not being stored in the
> > browser's history.
>
> > This is the script simplified. If placed onhttp://site1.example.com/
> > when it's executed it redirects tohttp://site2.example.com/but
> > there's no way to go back tohttp://site1.example.com/usingthe
> > browser's back button.
>
> > <code>
> > $(document).ready(function(){
> >     $('#click').click(function(){
> >         $.getJSON('index.php?jsoncallback=?', function(msg){
> >             location.href='http://site2.example.com/';
> >         });
> >     });})
>
> > </code>
>
> > Any help is appreciated.
>
>

Reply via email to