2种
1 比较简单的
function openwin2() {
window.open ("que_call_add.tan2.jsp", "newwindow", "height=500, width=540, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no")
}
2 较为复杂的
function openwin1() {
var popup_width = 640;
var popup_height = 350;
var popup_left = (screen.width - popup_width) / 2;
var popup_top = (screen.height - popup_height) / 2;
var popup_scrollbars = "no";
var popup_property = "width=" + popup_width;
var popup_property = popup_property + ",height=" + popup_height;
var popup_property = popup_property + ",left=" + popup_left;
var popup_property = popup_property + ",top=" + popup_top;
var popup_property = popup_property + ",scrollbars=" + popup_scrollbars;
window.open('/html/call/toAddFromCallMarketContactAction.do','marketFrom',popup_property);
}
posted on 2012-07-08 14:26
canry Tong 阅读(377)
评论(0) 编辑 收藏 所属分类:
js