open没有这个属性,showModalDialog有自己做吧<script> var x = window.screen.width; var y = window.screen.height; var width = 400; var height = 400;
x = (x-width)/2; y = (y-height)/2; window.moveTo(x,y); window.resizeTo(width, height); </script>
var x=window.screen.width; var y=window.screen.height; x=(x-500)/2; y=(y-200)/2; var newWin=window.open("ivoxDialog.htm","ivoxDialog","height=200, width=500,left=200,toolbar=no,menubar=no,location=no"+",top="+y+",left="+x);
Sorry! 我上面寫的有點問題 var x=window.screen.width; var y=window.screen.height; x=(x-500)/2; y=(y-200)/2; var newWin=window.open("ivoxDialog.htm","ivoxDialog","height=200, width=500,toolbar=no,menubar=no,location=no"+",top="+y+",left="+x);
var x = window.screen.width;
var y = window.screen.height;
var width = 400;
var height = 400;
x = (x-width)/2;
y = (y-height)/2;
window.moveTo(x,y);
window.resizeTo(width, height);
</script>
var y=window.screen.height;
x=(x-500)/2;
y=(y-200)/2;
var newWin=window.open("ivoxDialog.htm","ivoxDialog","height=200, width=500,left=200,toolbar=no,menubar=no,location=no"+",top="+y+",left="+x);
var x=window.screen.width;
var y=window.screen.height;
x=(x-500)/2;
y=(y-200)/2;
var newWin=window.open("ivoxDialog.htm","ivoxDialog","height=200, width=500,toolbar=no,menubar=no,location=no"+",top="+y+",left="+x);
http://go6.163.com/colorweb/js/mengxhwindow.htm