php&javascript:how to disable close in popup window?
|
demo 17 Dec 2008 11:05pm hi, I have a popup window where I make a small calculation then return the value to the parent page, the problem is I dont want the user to be able to hit close button from the popup bar, but only after clicking on the button that I made for calculation |
Answers
|
demo 17 Dec 2008 11:12pm u can't disable the user being able to close the window. Can u imagine if this was possible? Pop-up advertising that could not be closed.... a nightmare. I suggest you rethink your design. Popup windows are a bad idea in general because they a) may most likely be blocked and b) frustrate users who don't like to have more windows (and by extention, tabs) pop up for mundane details that could be displayed in the window. Try a hidden/blank div when the page is loaded the populate with the date via document.getElementById(ID_OF_WHATEVER).innerHTML = "data" I personally hate popups.... |
|
demo 17 Dec 2008 11:46pm I'd give Kris 25 thumbs up if I could. Popups: baaaaad idea! |
Related
Submit Answer
You must be logged in to post an answer. Please Login or Register.
Powered by phpMyAnswers.