Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  42] [ 4]  / answers: 1 / hits: 16785  / 14 Years ago, fri, march 26, 2010, 12:00:00

I have a pop-up window a user logs into, once they are logged in successful, I have a message that has a link to close the window. But I want it to not only close that pop up window, but I want it to refresh the webpage the pop-up window was clicked on.



So the page can refresh to see that there is a valid login session for that user.



Is this possible w/ jQuery?


More From » jquery

 Answers
30

In your popup window:



$('#closeButton').click(function(e) {
window.opener.location.reload(true);
window.close();
e.preventDefault();
});


Reloads the parent page and closes the popup.


[#97236] Monday, March 22, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
naomim

Total Points: 344
Total Questions: 95
Total Answers: 114

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
;