i have a small query i have a window from where i am opening up a pop up window using the below mentioned code
it is opening up A pop up window.
popup=window.open ('CreateJob.action', 'CreateJob','toolbar=1 resizable=1 width=640, height=540')
there is one cancel button in the pop up window which will close pop up window and second way a user can close pop up window using "X"
i want to capture these 2 events in paretns window so that when a user close a pop up window i can catch the event in parent window and can apply my logic in parent window as per my requirements
thanks in advance
from your opened window call the parent like-
<input onclick="opener.close()" type=button>
You can also redefine variables in the parent too-
If the parent is no longer there because you closed it, an error occurs.
So, you need to check for the parent-
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)