I want to implement the concept of opening a child window in my webpage, when the user clicks on a particular command button. Currently i have implemented it using some css and 'div' tag. The css file has the necessary design attributes of the new window. And the div tag holds the design of the new window, and i m setting the visibility of that div tag using backend code. So that when the user clicks on that button, the div tag's visibility will be set to true and the new window will open on the parent window, and all the controls of the parent window will be disabled.
But the problem in this is that the new window is a static one, the user wont be able to move it. I want to create the child window, in such manner that the user can just move it by clicking on the titile bar and dragging it.
I also tried it initially using window.open(). But the problem in that is that the user can jump to the parent window without closing the child window. (And one of my friend even suggested a code, which will close the child window, if the user clicks any control on the parent window)
My requirement is this, i want the child window to be created in a manner that the user should be able to move its position and the user cant switch to the parent window without closing the child window(jus like in the case of using the confirm dialog box in java script).
Actually, I have pop-up windows disabled in my browser. I hate the little $%$^@#@!!s. Allowed Pop-ups render in a new tab, not a new window. And the tab is background-loaded, not automatically made active.
However, your problem isn't in the programming, it's in the browser. No web browser I know of permits a window to totally lock out input processing for another window, and that's just as well, since malware could probably have all sorts of fun with a capability like that.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.