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替换任何可加载的框架集

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM