/    Sign up×
Community /Pin to ProfileBookmark

who can kill this window? using JavaScript

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?
i don’t have source code of that Applet…

but i think i would be able to kill poping windows in my browser using DOM…

thanks for ur help

atilla.selem


__________________

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliSep 10.2003 — yes you should be able to do that atilla.

Here is how,

typically Java applet opens a window using

window.open()

se where you have that code and then and then just comment out that line...?
Copy linkTweet thisAlerts:
@atillaselemauthorSep 11.2003 — how can i check it out?

i do not have the source code of that Applet...

do u mean that it emites Javascript code and i can find

window.open() somewhere?

sorry but i could not understand what u mean...

please tell me in detail...

thx.

atilla.
Copy linkTweet thisAlerts:
@ovisopaSep 11.2003 — try to insert in your page a javascript which will disable rightclick or you can try something more complicated by using an trasparent gif as background in a div. But you must align the div perfectly over the aplet and I think you will not be able to make any click at all in the applet window.

if you have any problem... tell us ?

see ya
×

Success!

Help @atillaselem spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...