4 Replies Latest reply on Jun 5, 2008 11:03 AM by beko75

    Javascript Pop-up window

    beko75
      Hello guys. PLEASE HELP ME!
      I have the Javascript for opening a page into a pop up window with no toolbars, scrollers etc….
      Here is the code that I enter in the html page itself in the HEAD tags:
      </style></head>
      <script language="JavaScript">
      function openNewWindow(URLtoOpen, windowName, windowFeatures) {
      newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
      </script>

      Here is the code that I enter into a button from the flash movie:
      on (release) {
      getURL("\r\njavascript:openNewWindow('main.html','thewin',\\r\\n'width=1280,height=980,to olbar=no,scrollbars=yes')");
      }

      What I am looking for is that I need the popup window to open not by specifying WIDTH and HEIGHT as above in my script, but I would like the html to extend and open on a percentage way thus to fit any monitor.
      I tried this but it wasn’t working:
      'width=100%,height=100%
      Or
      'width=default, height=default

      I hope someone has the clue for me regarding this issue.

      Thanks a lot for your efforts,

      Beko