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
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(); }
}