🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #610

applet in new browserwindow

#610
From: Nikolaj
Date: Thu, 04 Oct 2001 15:58
25 lines
2508 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: <9pi18v$1tvg$1@news.cybercity.dk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.227.3.83!newsfeed1.uni2.dk!news.cybercity.dk!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bacc,aba1ed456df98306,start
X-Google-Attributes: gid10bacc,public
X-Google-Thread: f9a23,aba1ed456df98306,start
X-Google-Attributes: gidf9a23,public
X-Google-Thread: fb3cb,aba1ed456df98306,start
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: f5d71,aba1ed456df98306,start
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 10a146,aba1ed456df98306,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113fd6,aba1ed456df98306,start
X-Google-Attributes: gid113fd6,public
X-Google-ArrivalTime: 2001-10-04 09:03:46 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.227.3.83!newsfeed1.uni2.dk!news.cybercity.dk!not-for-mail
From: "Nikolaj" <nik@email.dk>
Newsgroups: comp.lang.java,comp.lang.java.javascript,comp.lang.java.programmer,comp.lang.javascript,dk.edb.programmering.java,it.comp.lang.javascript
Subject: applet in new browserwindow
Date: Thu, 4 Oct 2001 17:58:08 +0200
Organization: Cybercity
Lines: 29
Message-ID: <9pi18v$1tvg$1@news.cybercity.dk>
NNTP-Posting-Host: port3.cvx1-noe.ppp.cybercity.dk
X-Trace: news.cybercity.dk 1002211423 63472 217.157.69.196 (4 Oct 2001 16:03:43 GMT)
X-Complaints-To: abuse@cybercity.dk
NNTP-Posting-Date: Thu, 4 Oct 2001 16:03:43 +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