打开页面


<script type="text/javascript">
var width = parseInt(window.screen.availWidth);
var height = parseInt(window.screen.availHeight*0.9);

var topLength= screen.availHeight/2-height/2;
//var leftLength= screen.availWidth/2-width/2;
var spec = "resizable=no,location=no,toolbar=no,status=yes,left=0,top=" + topLength + ",width=" + width + ",height=" + height;

var newWindow = window.open("frameset/index.html","_blank",spec);
newWindow.resizeTo(width + 5, height + 5);
window.opener = "";
window.open("","_self");
window.close();
</script>

猜你喜欢

转载自wujt.iteye.com/blog/1316313