Disable WIndow close (X)

R

RJN

Hi

I have a Popup window which has a Close button onclick of which I do
some database operations. I want to ensure that , user doesn't close the
window by clicking on X(Top right corner) and hence would like to
disable it. Is there a way to do this in javascript when I popup a
window. ofcourse I want the Title bar.

Regards

RJN
 
C

Curt_C [MVP]

no. This is by design.
Think about it, if you could then any "advertiser" could as well. Windows
you can't close would be a BAD thing.
 
K

Kevin Spencer

Hoo boy. Ever heard of ALT-F4?

I could go on, but as a programmer, I'm sure you realize all of the possible
ways there are to close a running application - and why.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top