Here I have two frames
Frame1 with a link,frame 2 with logout
Whenever I click a link in frame1 a new popup window will open.
I have to close that window via frame2 logout option.
Can anyone help?
![]() |
Here I have two frames
Frame1 with a link,frame 2 with logout
Whenever I click a link in frame1 a new popup window will open.
I have to close that window via frame2 logout option.
Can anyone help?
I am assuming you are spoeaking of HTML?Quote:
Originally Posted by gopitamil
If so are you using a editor (ie. Front page)? Are you able to let us see the code?
If you have a JavaScript function that opens a window in Frame 1, put a function on that same frame to close the window.
For example:
In frame 2 when you want to close the popup refer to the function in frame 1 by using parent.Code:var winHandle;
function openWindow() {
winHandle=open(.....);
}
function closeWindow() {
winHandle.close();
}
I'm doing this off the top of my head so you'll obviously have to mess around with it a bit, but that should give you an idea of the general concept.Code:function logout() {
...do some stuff...
parent.closeWindow();
Good Luck.
All times are GMT -7. The time now is 07:50 PM. |