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

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

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

"dialogWidth" Example

    
<html>
<body>
<SCRIPT>
function function1()
{
    event.srcElement.blur();
    window.showModalDialog("http://www.wbex.ru", "", 
        "dialogWidth:5cm; dialogHeight:10cm")
}
</SCRIPT> 
</HEAD>
<BODY>
<SELECT onchange="function1()">
    <OPTION>Item 1</OPTION>
    <OPTION>Item 2</OPTION>
    <OPTION>Item 3</OPTION>
</SELECT>
</body>
</html>



"dialogWidth" is applied to

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



"dialogWidth" Syntax and Note

Note:
Read and write properties. 
Sets the dialog window width

Value: 
A floating-point           the default unit is em for IE4 and px for IE5+
number followed by 
a unit designator.
    
Syntax:
    
window.dialogWidth = value
window.dialogHeight = value