Abakada ~ Back to Basics
Window Object Properties |
window Properties Object Properties Summary
Sets or retrieves the top coordinate of the dialog window.
HTML |
N/A |
Script |
window.dialogTop [ = iTop ] |
iTop |
Integer specifying the top coordinate in ems. |
The property is read/write with no default value.
This property applies only to windows created using the showModalDialog method.
The following example demonstrates the creation of a dialog window using the dialogTop object property to set the new window's relation to the top of the screen.
window.showModalDialog ( "modal.html","#550",
"dialogWidth:7.5cm; dialogHeight:7.5cm;
dialogTop:4cm; dialogLeft:0cm; status:0" )
Show me
window
dialogLeft, dialogHeight, dialogWidth