HELP WITH JAVASCRIPT !!

Discussions

Web tier: servlets, JSP, Web frameworks: HELP WITH JAVASCRIPT !!

  1. HELP WITH JAVASCRIPT !! (2 messages)

    Hi,
    I´m programming an web application and I´m using a little javascript.
    I need to open a window (javascript:open ...) and I make that, but my problem is that I need this window have no option to close.
    Can someone help me? Please, it´s very important for me.

    Thank you.

    Threaded Messages (2)

  2. A workaround?[ Go to top ]

    Hi Eva!
    I don't think it's a standard way of doing this. Though I have a workaround that might be useful..?

    <script language="JavaScript">
    <!--
    // Set this to true when / if you'll let them close the window
    // after some action is done...
    var isDone = false;

    function reOpen()
        {
        if(!isDone)
             {
    // Opens the same address. Perhaps you can use window.location
    // insted of the hardcoded address
    // titlebar=no I think might work on NS but not IE.
    // Look at http://msdn.microsoft.com/library for more IE info
             window.open('the_same_address.jsp', 'uncloseableWindow', 'titlebar=no');
             }
        }

    function setDone( newValue )
        { isDoneFlag = newValue; }
    //-->
    </script>
    </head>

    <body onUnload="reOpen();">



    Hope you can use some of it.
    Good luck!

    Best regards
    Erik
  3. Thank you[ Go to top ]

    Hi Erik,
    thank you very much for your help.
    I´m going to try to make what you say, perhaps I will have luck!!
    Everyway that's a worthwile information, I really thank you.

    Best regards,
    Eva.