Window width

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

    Window width

    Hi,

    What I thought to be a fairly straight-forward project is turning out to be
    ridiculous. I'm simply trying to determine the width and height of a browser
    window in IE v.6.0, but to no avail. I'm finding conflicting information
    regarding which window property I should be using, and in all cases I am
    receiving an "undefined" result. Code is as follows:

    function displayWidth(){
    window.alert("W idth = " + window.outerWid th);
    }

    How can I determine the width and height of my browser window?

    Thanks,
    Grant.


  • DU

    #2
    Re: Window width

    Grant Ito wrote:
    [color=blue]
    > Hi,
    >
    > What I thought to be a fairly straight-forward project is turning out to be
    > ridiculous. I'm simply trying to determine the width and height of a browser
    > window in IE v.6.0, but to no avail. I'm finding conflicting information
    > regarding which window property I should be using, and in all cases I am
    > receiving an "undefined" result. Code is as follows:
    >
    > function displayWidth(){
    > window.alert("W idth = " + window.outerWid th);
    > }
    >
    > How can I determine the width and height of my browser window?
    >
    > Thanks,
    > Grant.
    >
    >[/color]

    Not possible in MSIE 4+. There is no equivalent to window.outerWid th in
    MSIE 4+.

    DU
    --
    Javascript and Browser bugs:


    Comment

    Working...