How prevent popup window resizing in browsers.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anz

    How prevent popup window resizing in browsers.

    function popup_window(pa geurl,width,hei ght)
    {
    mywindow = window.open(pag eurl,"mywindow" ,"scrollbars=1, fullscreen =
    0,resizable =no,menubar=no, width="+width+" ,height="+heigh t);
    mywindow.focus( );
    }

    Here is the javascript function which i am using, but this doesn't
    work in opera?, is there any other script that will work in all
    browsers especially in opera ?
  • Henry

    #2
    Re: How prevent popup window resizing in browsers.

    On Jul 17, 1:08 pm, Anz wrote:
    function popup_window(pa geurl,width,hei ght)
    {
            mywindow = window.open(pag eurl,"mywindow" ,"scrollbars=1, fullscreen =
    0,resizable =no,menubar=no, width="+width+" ,height="+heigh t);
            mywindow.focus( );
    >
    }
    >
    Here is the javascript function which i am using, but this doesn't
    work in opera?, is there any other script that will work in all
    browsers especially in opera ?

    Do you mean that you want to know how to make a window opened with -
    window.open - non-resizable in more browsers (including opera). Don't
    do that, don't even try it. There are two possible scenarios for the
    user: 1. you opened the window at the correct size for the user, and
    so the user will never attempt to re-size it and it will not matter
    whether it is re-sizable or not. Or 2. you opened the window at the
    wrong size for the user and if he/she then cannot re-size it you will
    have failed the user.

    Opera have noticed that web developers have a strong tendency to not
    think about what they are designing and so to end up failing the user,
    so they have withdrawn the facility.

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: How prevent popup window resizing in browsers.

      Henry wrote:
      On Jul 17, 1:08 pm, Anz wrote:
      >function popup_window(pa geurl,width,hei ght)
      >{
      > mywindow = window.open(pag eurl,"mywindow" ,"scrollbars=1, fullscreen =
      >0,resizable =no,menubar=no, width="+width+" ,height="+heigh t);
      > mywindow.focus( );
      >>
      >}
      >>
      >Here is the javascript function which i am using, but this doesn't
      >work in opera?, is there any other script that will work in all
      >browsers especially in opera ?
      >
      [...]
      Opera have noticed that web developers have a strong tendency to not
      think about what they are designing and so to end up failing the user,
      so they have withdrawn the facility.
      And so has Mozilla.org, per Firefox 3.0 (as discussed recently in
      de.c.l.js). However, according to the Client-Side JavaScript 1.3 Reference,
      the features string must not contain whitespace, which might be another
      reason for it not working.


      PointedEars
      --
      Prototype.js was written by people who don't know javascript for people
      who don't know javascript. People who don't know javascript are not
      the best source of advice on designing systems that use javascript.
      -- Richard Cornford, cljs, <f806at$ail$1$8 300dec7@news.de mon.co.uk>

      Comment

      Working...