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

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

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

"dialogTop" Example

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



"dialogTop" is applied to

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



"dialogTop" Syntax and Note

Note:
Read and write properties. 
Specify the dialog window top coordinates. 

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