Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with window.open

Status
Not open for further replies.

secretsquirrel

Programmer
Mar 22, 2001
202
GB
Hi,

I've got a button which, when clicked, needs to open a new window containing another page. I have it working perfectly except I want to disable the 'close' button at the right of the title bar, so users are unable to close the window, without selecting an option on the page and using a 'close window' button or 'OK' button on the page.

Is there an easy way of doing this?

ie. is there a feature similar to status=no,height=300,width=200, etc.

I tried 'titlebar=no' but this seemed to make no difference.

Cross browser compatibility is not an issue, this only needs to work in IE.

Thanks in advance...
 
There is no way to disable that button in a browser window... and if you think about it, that's probably a really good thing.

:)
Paul Prewett
 
I was just trying to make sure that the user actually selects something without just getting rid of the window.

Thanks anyway!
 
SecretSquirrel,

you could open the same window on the "onUnLoad" event. Then the window will keep coming back until the user has selected something. Have something in the window which notifies the user that to get rid of this window they need to select something.

This I hate, it leads to a very bad user experience and a bad taste in your mouth as a programmer but... If you HAVE TO have the user select something and it's worth annoying the user about it, then do this. You're only as good as your last answer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top