mouseentet:移入事件。
mouseleve:移出事件。
这两个事件是js中经常用到的事件。
<div>
<a mouseentet="alert("hellow word")">移入事件</a>
<a mouseleve="alert("hellow word")">移出事件</a>
</div>
onclick事件
点击触发事件
<div>
<a οnclick="alert("hellow word")">点击事件</a>
</div>
doc对象包括:
document对象
all:提供所有html元素的访问
anchors:返回对文档所有anchor对象的引用
forms:所有form对象引用
images:对所有图片的引用
links:所有area和link对象的引用,可点击区域的图像映射和链接
cookie:设置或返回与当前文档有关的所有cookie。
domain:返回当前文档的域名
lastModifief:返回最后修改的日期和时间。
getElementById:拥有指定id第一个对象的引用
getElementsByName:带有指定名称的对象集合,nane名称
getElementsByTagName:带有指定标签名的对象集合
write:向文档写入html表达式或javascript代码
referrer:
element对象
attribute对象
event对象