js学习笔记

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对象




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值