Disable close button on popup window in javascript

Only Visible to You and DevExpress Support

Visible to All Users

Modify support ticket and change its visibility

Urgent Duplicate

We have closed this ticket because another page addresses its subject:

Answers approved by DevExpress Support

Disclaimer: The information provided on DevExpress.com and its affiliated web properties is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information.

Recently viewed tickets

You have yet to view any tickets.

Your search criteria do not match any tickets.

A server error occurred while processing your request. Please try again at a later time.

hi,
i want to know that how can i disable the close (x) button of pop window,using javascript.

thanx.

Mar 16 '07 #1

Disable close button on popup window in javascript

acoder

16,027 Expert Mod 8TB

When you use window.open, you can set titlebar to no or 0, but it is usually ignored, see link.

The alternative is to create a draggable div instead of a popup.

Mar 16 '07 #2

Hey Can You Help me out
I have used window.showModalDialog()
to popoup
Now i want to diable the close button
is it possible
can anyone help me out

Jul 18 '07 #4

Disable close button on popup window in javascript

acoder

16,027 Expert Mod 8TB

Hey Can You Help me out
I have used window.showModalDialog()
to popoup
Now i want to diable the close button
is it possible
can anyone help me out

Welcome to TSDN!

Do not use showModalDialog - it is only supported by IE.

There's no option to disable the close button, see the documentation.

If you want this functionality, create your own draggable DHTML pseudo-popup.

Jul 18 '07 #5

Disable close button on popup window in javascript

gits

5,390 Expert Mod 4TB

hi ...

in case you want to call a javascript function before closing the window you may use the 'onbeforeunload'-event ... normally i think this is the typical reason to want to have the close-button disabled ... so you may capture the closing of the window and may do something you want in that case ...

kind regards

Jul 18 '07 #6

hi ...

in case you want to call a javascript function before closing the window you may use the 'onbeforeunload'-event ... normally i think this is the typical reason to want to have the close-button disabled ... so you may capture the closing of the window and may do something you want in that case ...

kind regards

hi
Thanks for the reply
Well have you gone through google calender
When you click On theEvent a popup box APPEARS WITH TAIL POINTING TO PARENT WINDOW
is it possible to create such popup window using javascript
can u give some solution for this

Jul 23 '07 #7

Disable close button on popup window in javascript

gits

5,390 Expert Mod 4TB

hi
Thanks for the reply
Well have you gone through google calender
When you click On theEvent a popup box APPEARS WITH TAIL POINTING TO PARENT WINDOW
is it possible to create such popup window using javascript
can u give some solution for this

hi ...

there's a new thread with this question from you moved here from another forum, so i'll put the link to it here:

http://www.thescripts.com/forum/thread681560.html

it's better to use the new thread there for your question.

kind regards

Jul 23 '07 #8

hi,
i want to know that how can i disable the close (x) button of pop window,using javascript.I have set titlebar to no . But it's still not workiing.

can someone help me out please...

thanx

Sep 6 '07 #9

Disable close button on popup window in javascript

gits

5,390 Expert Mod 4TB

hi ...

welcome to TSDN ...

have a look at post #6 ... the answer is up there ;) ... you cannot disable that button, but you may resspond to the event when it is clicked.

kind regards

Sep 6 '07 #10

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

How do I remove the Close button from a pop

You can't remove the close button, but there is a workaround: You can select the button which acts as the close button on the pop-up. Make sure the close button is a custom action which doesn't close the form while the requirements for closing a forum aren't met.

How do I close a popup in Javascript?

self. close(); should do it. That should work from within the popup.