日期:2014-05-16  浏览次数:20310 次

怎样学习javascript啊,有没有速查手册之类的?菜鸟求教
什么 getElementById()
什么 getElementById().click();都是什么意思吗?
有没有速查手册之类的,大侠们指明该怎么学啊,给个速查的联接地址,或是有速查手册给我发一个,谢谢各位了,ytzlm@126.com

------解决方案--------------------
送你三本手册!

DHTML参考手册(getElementById 就在这里面)
http://download.csdn.net/source/308913

JScript语言参考
http://download.csdn.net/source/308916

样式表中文手册
http://download.csdn.net/source/304124

------解决方案--------------------
getElementById()

是取一个对象。例如<input type="button" name="button" id="button" value="例子">
var buttonObj = document.getElementById('button');
这里就是取这个按钮这个对象。
document.getElementById('button').click();
当按钮对象被触发单击事件的时候执行这个方法
一般都写成
HTML code

<input type="button" name="button" id="button" value="例子">
<script>
document.getElementById('button').onclick=function test(){
  alert('触发成功');
}
</script>