window.open传递多个参数

在前台使用
var
url = 'AddFiles.aspx?name=' + nm + '&id=' + id; window.open(url, "", "width=1024,height=768");

 在后台使用

Response.Write("<script type=\"text/javascript\">window.open(\"ModifyList.aspx?id=" + id + "\");</script>");
Response.Write("<script type=\"text/javascript\">window.open(\"EditInfo.aspx?material_NO=" + this.material_NO.Value + "&customer=" + this.Customer.Value + "&DEPT=" + this.DEPT.Value + "\");</script>");

 

window.open(URL,name,specs,replace)

name:_blank(新窗口),

    _self(替换当前页面)。

    _parent - URL加载到父框架。

    _top - URL替换任何可加载的框架集

 

posted @ 2017-01-23 13:16  水墨晨诗  阅读(12771)  评论(3编辑  收藏  举报