JavaScript Reference/Javascript Properties/dialogHeight

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

"dialogHeight" Example

   <source lang="javascript">
   

<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>


     </source>
   
  


"dialogHeight" is applied to

   <source lang="javascript">

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

     </source>
   
  


"dialogHeight" Syntax and Note

   <source lang="javascript">

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

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


     </source>