JavaScript Reference/Javascript Methods/resizeBy — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 08:22, 26 мая 2010

"resizeBy()" Example

    
<html>
<body>
<script language="JavaScript">
    function function1(){
        window.resizeBy(-100,-100);
    }
</script>
<input type="button" value="Resize this window by (-100,-100)" onClick="function1();">
</body>
</html>



"resizeBy()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |window                                                        |
+----------------+--------------------------------------------------------------+



"resizeBy()" Syntax, Parameters and Note

Note:
Resizes the window by the specified values, preserving the window"s 
left and top positions.
    
Syntax:
    
window.resizeBy(param1, param2)
Parameters:
    param1   Required; the number of pixels by which to resize the width.
    param2   Required; the number of pixels by which to resize the height.