-2

I've done this before but cannot recall how I did it! So not sure what to search for in my code!

Normally I close a pop up and reload the screen underneath. Simple.

opener.location.reload();
self.close();

But instead of causing the underlying screen to reload, I want a specific url to load. What have I forgotten?

2

2 Answers 2

1
opener.location = url;  // url being the url string

See reference on window.location

Sign up to request clarification or add additional context in comments.

1 Comment

Wow, I looked through a gazzilion lines of code and couldn't find that! Must have used a different way but this works fine. Thanks!
0
opener.location = 'http://example.com';
self.close();

1 Comment

Could you add some explanation? This showed up in the LQP queue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.