By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,464 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,464 IT Pros & Developers. It's quick & easy.

disable Close(x) icon script using java script

P: 1
Hello,
I wnat the code , how to disable the Close(x) icon script using java script . is there any event that can be used to prompt the user before closing the new window.
Oct 31 '07 #1
Share this Question
Share on Google+
6 Replies


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!

Yes, you can use onbeforeunload. You should only use this for pages which are part of a web application where users may lose the information they have entered and the changes they have made.
Oct 31 '07 #2

dmjpro
100+
P: 2,476
Welcome to TSDN!

Yes, you can use onbeforeunload. You should only use this for pages which are part of a web application where users may lose the information they have entered and the changes they have made.
Remember "onbeforeonload" does work with Opera.

Debasis
Oct 31 '07 #3

dmjpro
100+
P: 2,476
Welcome to TSDN!

Yes, you can use onbeforeunload. You should only use this for pages which are part of a web application where users may lose the information they have entered and the changes they have made.
Remember "onbeforeunload" does work with Opera.

Debasis
Oct 31 '07 #4

acoder
Expert Mod 15k+
P: 16,027
Remember "onbeforeunload" does work with Opera.

Debasis
You mean "doesn't work". It's not needed anyway because the scripts continue to run in Opera as far as I can recall.
Oct 31 '07 #5

dmjpro
100+
P: 2,476
You mean "doesn't work". It's not needed anyway because the scripts continue to run in Opera as far as I can recall.
The feature is added or it's added already?

Debasis
Nov 1 '07 #6

acoder
Expert Mod 15k+
P: 16,027
The feature is added or it's added already?
Opera remembers the script runstate, so it's as if you never left the page when you come back to it. That's why onload and onunload does not fire when you use back and forward buttons.
Nov 1 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.