event.width : Event Object : Event JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Event » Event Object »

 

event.width








The width property refers to the width of a window or frame.

It is set during the RESIZE event to the new width of window or frame being resized.












<html>
    <head>
    <title>Example of the event.width property</title>
    </head>
    <body>
    <script language = JavaScript>
    <!--
    function handle(evnt){
        alert("An RESIZE event has occurred. The new width of the window is: " + evnt.height);
        return true;
    }
    window.onresize = handle;
    -->
    </script>
    Resize browser to see the result
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Event
» Event Object