🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.javascript
Article #14

applet in new window

#14
From: Nikolaj
Date: Thu, 04 Oct 2001 10:59
25 lines
2411 bytes
I want to create the "illusion" that the user starts an application from a
browser. The application is actually an applet running in a new
browser-window of its own.

My idea is to have a button on an html-page. When the button is pressed I
want to open a new window. (Can this for instance be done with
java-script?).
In the new window (which shouldn't have an addressbar, toolbar, statusbar
etc. from the browser) I want to place my applet.

I'm sure all of the above can be done but I'm not sure how.

The interesting question however is: Can I somehow in my applet listen to
the browser-window, and detect if it's beeing closed. And even more
interesting. Can I warn the user if he tries to close the window and ask if
he wants to cancel the operation?


Hope you can help with all or any of the above. Thanks.

I have some experience with java, but none with javascript, so I don't no
what part of this should be done in java and what part should be done in
javascript..

Nikolaj
Technical Details
Message-ID: <9phfqk$11ql$1@news.cybercity.dk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!kinglear.mobilixnet.dk!news.cybercity.dk!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9a23,e4b41bd7068a83a9,start
X-Google-Attributes: gidf9a23,public
X-Google-Thread: 10bacc,e4b41bd7068a83a9,start
X-Google-Attributes: gid10bacc,public
X-Google-Thread: fb3cb,e4b41bd7068a83a9,start
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 10a146,e4b41bd7068a83a9,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113fd6,e4b41bd7068a83a9,start
X-Google-Attributes: gid113fd6,public
X-Google-ArrivalTime: 2001-10-04 04:06:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!kinglear.mobilixnet.dk!news.cybercity.dk!not-for-mail
From: "Nikolaj" <nik@email.dk>
Newsgroups: comp.lang.java.javascript,comp.lang.java.programmer,comp.lang.javascript,dk.edb.programmering.java,it.comp.lang.javascript
Subject: applet in new window
Date: Thu, 4 Oct 2001 12:59:59 +0200
Organization: Cybercity
Lines: 27
Message-ID: <9phfqk$11ql$1@news.cybercity.dk>
NNTP-Posting-Host: port58.cvx1-noe.ppp.cybercity.dk
X-Trace: news.cybercity.dk 1002193557 34645 217.157.69.251 (4 Oct 2001 11:05:57 GMT)
X-Complaints-To: abuse@cybercity.dk
NNTP-Posting-Date: Thu, 4 Oct 2001 11:05:57 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700