I wasn't sure what to call it, so sorry I got it wrong.

I am poping up a window with javascript and I thought that this would make it lock the browser until the window was closed.

here is the script. I thought the dependent would do it.

function bareWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight)
{
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties='height='+a_int_windowHeight+',width='+a_int_windowWidth+',top='+int_windowTop+',left='+ int_windowLeft+',scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories= no,status=no,fullscreen=no,dependent=yes,channelmode=no';

  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
   // if (parseInt(navigator.appVersion) >= 4) {
   //   obj_window.window.focus();
   // }
}

Thanks
Dave

    what do you mean by "lock the browser"? Doesn't sound very user friendly.

      I knew I phrased it wrong.

      The pop up retains the focus until it is closed.

      Meaning you cannot click back to the browser until the little pop up is closed.

      Like a message window in most programs.

        So I am trying to work with the Java

        window.showModalDialog()

        I am having trouble making it work with php to open a modal dialog (informational pop up).

        How should I implement this through PHP

          php is server side java script (not java) is client side, all the php would do is send the java script to the browser to run.

            OK, so I phrased that wrong too.

            I have a php page and I have a link that opens a popup on the page.

            I want a modal popup but am having issues because I am not a java programmer.

            Using the window.showModalDialog() requires a return variable, I think.

            Any of you java coders give me some hints on implementing this.

            Thanks.
            Dave

              You're still phrasing it wrong; Java is not JavaScript.

                if your not a javascript programmer using one of the 'pre-made' scripts I linked to would probably be you best option.

                  I wish to learn rather than just copy and paste.

                  Never mind, I'll have to look elsewhere

                    Write a Reply...