🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39218

Re: confirm + refresh

#39218
From: Łukasz
Date: Sun, 26 Mar 2006 20:15
29 lines
1787 bytes
> taka prowizorka i działa tylko pod IE:
>
> <script type="text/javascript">
> <!--
> czytak = 1;
> function czyzamknac(){
> if(czytak==1) {
> window.event.returnValue='tekst';
> window.event.cancelBubble=true;
> }
> }
> function cl() {
> czytak = 0;
> }
> //-->
> </script>
>
> <body onbeforeunload="czyzamknac();">
>
> i dla każdego linku musisz dać onclick="cl();"

Myslalem o czyms takim jak na http://rapidshare.de/ kiedy juz sie przejdzie
do strony z ktorej mozna sciagnac plik.. W sumie dziala w podobny sposob jak
powyzszy kod, tyle ze tam pozwala zamknac bez problemu przegladarke.. tutaj
przy probie zamkniecia tez info mi wyskakuje.. no i jednak lepiej byloby
jakby wszedzie chodzil taki kod a nie tylko w IE:) Samo dodanie funkcji do
linkow to nawet nie problem...
Ale oki, mam cos, co w jakis tam sposob dziala.. bede kombinowal.. wiekie
dzieki!
Technical Details
Message-ID: <e06sog$nql$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <e06if4$3ee$1@inews.gazeta.pl> <e06lfl$2g35$1@news2.ipartners.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Łukasz <kemler@gazeta.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: confirm + refresh
Date: Sun, 26 Mar 2006 22:15:12 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 31
Message-ID: <e06sog$nql$1@inews.gazeta.pl>
References: <e06if4$3ee$1@inews.gazeta.pl> <e06lfl$2g35$1@news2.ipartners.pl>
NNTP-Posting-Host: terok.osk.enformatic.pl
X-Trace: inews.gazeta.pl 1143404112 24405 193.19.165.20 (26 Mar 2006 20:15:12 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 26 Mar 2006 20:15:12 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-User: kemler
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit