Feedback on: irt.org FAQ Knowledge Base Q722
Worth:
Very worth reading
Comments:
Good answer, but I'd really like to see a different answer to this question.
I have a Java applet which needs to run in its own window. I kick off this applet from a launch page. I'll spare you the gory details, but it all boils down to this: What I really need is a non-destructive way for the launch page to find out whether the applet window is already present, even if the applet window is not a child of *any* extant window.
Cheers!
Worth:
Length:
Technical:
Comments:
This piece of code works for me:
var keywindow=0;
function popkeyup(url){
if(keywindow){
if(!keywindow.closed){
keywindow.focus();
return false;
}
}
keywindow=window.open(url,'name','status=no, height=530, width=910, resizable=no');
if(keywindow.opener == null){
keywindow.opener = self;
}
keywindow.focus();
return false;
}
Then in the main body:
<a href="page.html" target="_blank" onclick="return popkeyup('page.html')"></a>