Actually i have popUp window that is opened on the button click.My question is i want this popUp window always at top untill the user closed the opened window he/she can not go to main screen screen. eg In main.html >>> <input type="button" name="btn" value="Data" onclick="ViewPopup();"/> <script language="javascript"> function ViewPopup(){ var data= window.open("","new_window") data.document.write('<html><head><title>Popup</title></head>'); // how i focus on this window untill user close it?? } </script> Kindly give me suggestion