javascript的history.go( 1)
javascript的history.go(-1)
echo '<script language="javascript">{alert("留言不能为空!");history.go(-1);}</script>';}
echo '<script language="javascript">{alert("留言不能为空!");return true;}</script>';}
这是不刷新页面的方式
相关文档:
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table ......
原文地址:http://www.cnblogs.com/daniel-shen/archive/2006/07/12/449280.html
javascript 中this 的用法:
1.<div onclick="// 可以在里面使用this">division element</div> this 指向div
2. <div id="elmtDiv">division element</div>
&nbs ......
[转帖]JavaScript窗体大小
网页可见区域宽:document.body.clientWidth
网页可见区域高:document.body.clientHeight
网页可见区域宽:document.body.offsetWidth (包括边线的宽)
网页可见区域高:document.body.offsetHeight (包括边线的宽)
网页正文全文宽:document.body.scrollWidth
网页正文全文高:docume ......
navigator对象主要用于检测浏览器的版本,该对象的属性主要有:
appcodeName:
appVersion
.....
JavaScript中保留字。。。
转换函数eval("12.34*12")
parseInt()
parseFloat();
join() 把一个数组的所有元素都转换成字符串
reverse()颠倒数组
sort排序
concat()
slice()
splice()
push()
pop()
toString() ......