ysjfirst

 

常用javascript代码收集

弹出窗口代码: <a herf='#' Onclick=window.open('Edit.aspx?id=1','edit','width=650,height=350,resizable=0,scrollbars=auto')>删除</a>

html页面传递中文参数到其它页面中:
<script language="JavaScript">
function GoUrl()
{
var Name = "中文参数";
location.href = "B.aspx?Name="+escape(Name); //escape这个函数是关键
}
</script>
<body onclick="GoUrl()">
>> 进行接收
string Name = Request.QueryString["Name"];
Response.Write(Server.UrlDecode(Name));

posted on 2005-08-10 01:26  袁帅钧  阅读(806)  评论(0编辑  收藏  举报

导航