Hii guys 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
Hi! According to my opinion window popup is not your solution. I have additional method which code is given bellow. <html> <head> </head> <script language="javascript"> function ViewPopup(){ window.main.deleteRow(); } </script> <body> <table id= "main" border="1" width="100%" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%" bgcolor="#808000"> <tr> <td width="100%" height="5%" onclick="ViewPopup()"> <p align="center"><b><font size="5">CLICK WITHIN THE TABLE TO </font></b></p> <p align="center"><b><font size="5">CLOSE THE POPUP</font></b></p> </td> </tr> </table> </body> </html> Save the code to .html file and test it.