Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q722

Feedback on: irt.org FAQ Knowledge Base Q722

Sent by Peter Freeland on November 01, 2001 at 13:28:58: - feedback #3290

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!



Sent by Lance on Monday June 25, 2007 at 05:20:37 - feedback #4737

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>





©2018 Martin Webb