Set the dialog window left
<html>
<body>
<SCRIPT>
function function1()
{
event.srcElement.blur();
window.showModalDialog("http://www.java2s.com", "",
"dialogWidth:5cm; dialogHeight:10cm;
dialogTop:0cm; 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