How to remove the upper right close button
Posted
by tahdhaze09
on Stack Overflow
See other posts from Stack Overflow
or by tahdhaze09
Published on 2010-03-16T19:28:59Z
Indexed on
2010/03/16
22:11 UTC
Read the original article
Hit count: 261
I need to kill the close 'x' button at the top of a jQuery UI modal dialog box. I have a modal that opens with an OK button that redirects to the site. The site behind the modal is in an iframe. When the user agrees to the statement in the dialog box and clicks the 'OK' button, it redirects to the site that is outside the iframe. If the user clicks on the 'x', it goes to the iframe site, which I do not want to have happen.
I need the modal to work as a one-way to the site it goes to. It basically forces the user to accept the user agreement.
I would post code, but its an intranet site.
Thanks everyone for your help!
EDIT: This site is a government intranet portal, not a commercial site. So the goal is NOT to trap a user into the site, but rather to let the user know that the use of this site is restricted and to make sure you understand and accept the user agreement or you cannot use the site.
© Stack Overflow or respective owner