Click to See Complete Forum and Search --> : killing child windows...how?


atilla selem
May 22nd, 2003, 04:44 AM
hi,
i have a java applet being used in my application. but when someone right clicks on one of the menu items it pops up a new window and tries to connect to a web page on internet.
Since my web application is on a Local Area Network it tries and fails...
How can i kill that window using JavaScript?
is that possible to kill that window although source of it is a Java Applet?

thanks for ur help

atilla.selem

lord loh
May 22nd, 2003, 05:20 AM
Does the applet name the window ?

Did you try killing it using it's name ?

hope this guides you...

atilla selem
May 22nd, 2003, 10:30 AM
hi,
no it doesn't name the window...
there is no any params that also effect the window poping up...
i don't know how applets do that... i think they have functions that generate javascript on fly and creates window inside their own...but there must be a way to control what is happening in my own browser using javascript...

tx for ur help...
if any suggestion pls reply...

atillaselem.

lord loh
May 23rd, 2003, 03:24 AM
Do you really need the applet ?

You can disable the applet using the java script....then no window will be opened at all...

If the applet is your, you could change the source....

atilla selem
May 23rd, 2003, 09:47 AM
i've just put this applet to my enter page...
try right click ball menu applet (http://galeon.hispavista.com/la-web-de-kili/anarkismo1.htm)
i just wonder if any scripting exist to kill that window or is it impossible to kill it unless it belongs to me...
is it a must to be the owner of the applet to control such windows...???

tx a lot

atillaselem

lord loh
May 25th, 2003, 01:58 AM
Sorry I have reached the end of my wits...

however, you had a suspicion that java generates java script on the fly and upens a new window....

the add the following to your page before the applet section
function window.open(){}
This will nullyfy that javascript part...
If Your suspiction is not correct, this wont work...