易截截图软件、单文件、免安装、纯绿色、仅160KB

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>';}
这是不刷新页面的方式


相关文档:

javascript 在 ie 和 firefox 区别

1.document.formName.item("itemName") 问题
说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"];Firefox下,只能使用document.formName.elements["elementName"].
解决方法:统一使用document.formName.elements["elementName"].
JQUERY:
$("#idName")
  &nb ......

JavaScript很漂亮的日历特效

<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> ......

javascript this 用法

原文地址: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显示时间


 //显示当前时间----------------------------------------------------------
<SCRIPT language="javascript" type="text/javascript" >
function reloop(){
 var time = new Date( ); //获得当前时间
 //获得年、月、日,Date()函数中的月份是从0-11计算
 var year = time.getFullYear ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号