I have a button, when I click on it I want the browser to open an extra window (300 by 300). I want users to preform an action on this window, before they can continue working in the main window.
I have the following:
<input type='button' name='Button' value='Edit' onClick="window.open('edit.php?subcatid=$subcatid','','width=350,height=200,target=child');">
This does open a window, but I can still click in the main window...
Use the following syntax
window.open(url,n name, "menubar,resizable,width=250,height=350")
it's not an answer to my question... if you see what I wrote in the first message you'll see that I already had that one.
I want to pop-up a window which inactivates the parent window until the pop-up window is closed.
In the child window body tag:
And in your main window:
... and you'll have to give your child window a name when you create it...
<input type='button' name='Button' value='Edit' onClick="window.open('edit.php?subcatid=$subcatid','myWinName','width=350,height=200,target=child');">
Warning: This could annoy and confuse the user.
Thanx for your help, scrubz...
I'll give it a try.
About annoying the user: It's a content management system, they have to perform an action in the child window, otherwise the system cannot continu. :)
And it doesn't happen too often, so I'm not worrying about it.