function add( ){
var width = 200;
var height = 200;
var left = (screen.width/2)-(width/2);
var top = (screen.height/2)-(height/2)-100;
window.open ("${pageContext.request.contextPath}/test.do", "新页面",
"height=200, width=200,top="+top+", left="+left+", toolbar =no, menubar=no, scrollbars=no,location=no, status=no")
}
html 打开新窗口在屏幕中间显示
最新推荐文章于 2024-05-08 10:01:34 发布