frank oo java

我爱oo,我爱java。http://oofrank.blogchina.com

My Links

Blog统计

公告

欢迎到 oofrank@blogchina 来 QQ:421057986 email:oofrank@163.com
www.flickr.com
oofrank@flickr with my S9500

Free Download Manager
Free Download Manager

文章

收藏

相册

IT

other

存档


正在读取评论……
我一般在Firefox和IE上进行js开发有一些经验,今天写一下:

1、getElementById 和 getElementsByName方法在两种浏览器都可用;
2、<form name="form1">; form1.submit();都可用
3、IE不能捕获   Tab键 FF可以
4、firefox中捕获事件最简单要这么作:<tagname onclick="dealWith(event)">
        这样就可以在dealWith(e)函数中使用e来访问event对象(IE中通过window.event)。
5、var newOpt = new Option(txtInput.value,txtInput.value);
       listX.options.add(newOpt);
      用这种方法可以在IE,FF中达到同样的目的:增加一个选择项
6、listX.options[i]=null;用这种方法可以在IE,FF中达到同样的目的:删除一个选择项

Trackback: http://tb.donews.net/TrackBack.aspx?PostId=311508


[点击此处收藏本文]  发表于2005年03月24日 8:27 PM




正在读取评论……
大名
网址
验证码
评论