弹出窗口代码

http://www.cnblogs.com/ysjfirst/category/33890.html
HTML 归档 阿甘的博客
http://blog.wztv.cn/gump/html/

onClick="javascript:window.close();

<script language='javascript'>alert('你查询的信息不存在!');
window.close();</script>
<script language="javascript">
alert('恭喜您,您的信息已经发布成功!');
window.location.href="<%=ref%>"+"add_info.asp";
</script>

<a href="javascript:goUrl();">
     <img src="javascript:nextAd();" name="imgInit" width="352"
height="150" border="0" id="imgInit" style="FILTER:
revealTrans(duration=3,transition=6);" /></a>

http://www.cnblogs.com/ysjfirst/archive/2005/08/10/211206.html


    常用javascript代码收集
    <http://www.cnblogs.com/ysjfirst/archive/2005/08/10/211206.html>

弹出窗口代码: <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 @ 2011-12-16 08:22  ;姚元培  阅读(151)  评论(0编辑  收藏  举报