I want to open a popup window and disable the parent window. Below is the code that I am using;
function popup()
{
popupWindow = window.open('child_page.html','name','width=200,height=200');
popupWindow.focus();
}
For some reason, the parent window does not get disabled. Do I need some additional code OR what is the case?
Again, I am looking for something similar to what we get when we use showModalDialog()..i.e. it does not allow to select parent window at all..Only thing is I want to get the same thing done using window.open
Also please suggest the code which will be cross-browser compatible..
and then declare these functions in the body tag of parent window
As you requested here is the complete html code of the parent window
Content of new.jsp below