hi
i have a html page when the user clicks a button in the parent window a popup window will be opened which will contain the login page.if the user is a valid user then i want the parent window to get refreshed so that i can show him the next page
thanks

Recommended Answers

All 2 Replies

Hi,
using window.opener you can refer to the window which has created the popup window.

on a particular event use window.opener to refer parent, in popup window.
use
window.opener.location.reload()
to reload the document of parent !!!

You should consider redesiging so you don't use popup windows - chances are the user's browser will block it. Consider creating a popup effect using CSS + HTML instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.