|
 |
javascript thread: SV: Alert Window
Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 29 Oct 2002 17:12:58 +0100
|
|
This Should Do The Trick:
<body onbeforeunload="return window.location;">
Instead Of The Window.Location U Can Put Any Desired Text.
~Abhijeet
----- Original Message -----
From: "Robert Nyman" <robert.nyman@c...>
To: "javascript" <javascript@p...>
Sent: Tuesday, October 29, 2002 8:12 AM
Subject: [javascript] SV: Alert Window
This is IE only...
function areYouSure(){
if(confirm("Are you sure you want to close this window?"))
window.close();
}
<body onbeforeunload="areYouSure()">
/Robert
-----Ursprungligt meddelande-----
Från: arsal01@h... [mailto:arsal01@h...]
Skickat: den 29 oktober 2002 16:13
Till: javascript
Ämne: [javascript] Alert Window
before the window close i want to pop up a message telling user that the
window will going to close - select yes/NO - how would i do that and
then
respective action depending what the user chose
arsalan
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
|
|
 |