'dialogTop' Example : dialogTop « Javascript Properties « JavaScript Reference

'dialogTop' Example

    
<html>
<body>
<SCRIPT>
function function1()
{
    event.srcElement.blur();
    window.showModalDialog("http://www.java2s.com", "",
        "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>

    
      
      








Related examples in the same category

1.'dialogTop' Syntax and Note
2.'dialogTop' is applied to