易截截图软件、单文件、免安装、纯绿色、仅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获得url参数

页面提交数据一般有两种方法:get,post。post就是所谓的form提交,使用视图;get是通过url提交。
Get方法一般用后台代码(如asp,asp.net)获得参数,代码很简单:Request.QueryString["id"];即可获取。 
有些时候需要直接在前台获取url参数,要用到javascript,js没有直接获取url参数的方法,那么,我们如何通过js ......

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学习笔记(四)

1.出于安全考虑,JavaScript中只有开发者自定义的类可以被继承。
2.使用对象冒充实现继承
      function ClassA(sColor){
         this.color=sColor;
         this.showColor=function (){
 &nbs ......

在网上找的javascript的内置对象的资料

JavaScript拥有内置对象和自定义对象,事实上各种数据类型的变量都属于一种对象,变量在声明和赋值后马上拥有对应的方法和对象。
  1.JavaScript内置对象的种类
  JavaScript对象依照建立方式不同可分为使用变量声明的隐性对象和使用new命令对立对象副本的显性对象。
  
  隐性对象(Implicit[im'plisit] Object ......

javascript stuffs

Primitive types
1. undefined, null, boolean, number, string; undefined is derived from null.
e.g. var tmp; typeof tmp == undefined.
e.g. void(javascript:aler(‘x’)) == undefined.
e.g. undefined==null
2. NaN!=NaN isNaN(“123”)==false isNaN(“blue”)==true ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号