Pop up window trouble

javascript United States
  • 19 years ago

    Hi,
    I am using a pop up window script but i need to know how to get rid of the maximise button on the top of the page.


    Does anyone know how this can be done??


    Here is what I have got. I've tried maximise=no, maxbutton, maximize etc with no luck.


    function popwin1()
       {
          window.open ('index2.htm', 'newWin1', 'toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=640,height=480');
       }



    Thanks,
    Simon.

  • 19 years ago

    There are properties that are for javascript 1.2. you cant use these with old borwsers...


    Here are the new properties:
    alwaysLowered  : yes|no
    alwaysRaised : yes|no
    outerWidth : number of pixels
    outerHeight : number of pixels
    screenX : position in pixels
    screenY : position in pixels
    titlebar : yes|no
    z-lock : yes|no


    youcould try the titlebar property..it would remove the titlebar and thus the maximaise button also..


    - kiran

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The question of whether computers can think is just like the question of whether submarines can swim.” - Edsger W. Dijkstra