popUp problem

Discussion in 'Programming' started by srox, Oct 12, 2008.

  1. #1
    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
     
    srox, Oct 12, 2008 IP
  2. nishanair

    nishanair Active Member

    Messages:
    188
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    nishanair, Oct 13, 2008 IP