WIDTH AND HEIGHT IN JAVA-SCRIPT NEEDED

i need for my java-scripts

the WIDTH AND HEIGHT of my main window(document)

plese help if you can

thanks from munich


Comments

  • : i need for my java-scripts

    : the WIDTH AND HEIGHT of my main window(document)

    : plese help if you can

    : thanks from munich

    :



    This works in NS:

    alert(window.innerWidth);

    alert/window.innerHeight);



    this gives you the size of the document(s) shown.

    If you need the size for the window, including

    buttons, menus, scrollbars and the whole enchilada, you specify "outer" instead.



    Unfortunately this is not specified in the Document Object Model, but is Netscape specific.

    IE5 and Opera 4.01 gives an "undefined object" error.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories