Skip to content Skip to sidebar Skip to footer

How To Disable Parent Window While Child Window Appear By Clicking Button On Parent Window

I have designed one window in jsp in which there is a search button. when user clicks 'search' button, the new window appears. But at this time i want my parent window to be disab

Solution 1:

function openSearchPopUp() { 
  popupWindow= window.open(url,'window','width=800,
                           height=600,location=yes,
                           menubar=‌​yes,scrollbars=yes,
                           resizable=yes'); 
  popupWindow.focus(); 
  document.onmousedown = focusPopup; 
  document.onkeyup = focusPopup; 
  document.onmousemove = focusPopup; 
} 

function focusPopup() {
  if(popupWindow && !popupWindow.closed) { popupWindow.focus(); } 
} 

Solution 2:

You can use Greybox . Please visit the link : http://orangoo.com/labs/GreyBox/

Hope this will suffice your requirement.


Post a Comment for "How To Disable Parent Window While Child Window Appear By Clicking Button On Parent Window"