mardi 22 janvier 2019

close all child window automatically when parent tab window is closed in JSP

In a window one one tab have an i frame element which should render document viewer componenet while clicking one popup button inside i frame element it open a seperate window like this. the jsp code is

<param name="bar2button1" value="openInFullScreen(), Popup out, ../../../eops/images/external.png, ../../../eops/images/external.png, true" />

and javascript code is

function openInFullScreen() {
    var popup = window.open(window.location.href, "_blank",  "popup", "fullscreen");        
    if (popup.outerWidth < screen.availWidth
            || popup.outerHeight < screen.availHeight) {
        popup.moveTo(0, 0);
        popup.resizeTo(screen.availWidth, screen.availHeight);
    }       
}

it worked fine but what i need is after opening multiple document from the viewer when i close the tab which contain the document viewer it should automatiacally close all the cooresponding child tabs.

the tab closing functionallity is done from ember side.

Any idea how to achieve this?




Aucun commentaire:

Enregistrer un commentaire