《javascript基础》word版

《javascript基础》word版

ID:22684976

大小:644.00 KB

页数:131页

时间:2018-10-30

《javascript基础》word版_第1页
《javascript基础》word版_第2页
《javascript基础》word版_第3页
《javascript基础》word版_第4页
《javascript基础》word版_第5页
资源描述:

《《javascript基础》word版》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、o事件源对象event.srcElement.tagNameevent.srcElement.typeo捕获释放event.srcElement.setCapture(); event.srcElement.releaseCapture(); o事件按键event.keyCodeevent.shiftKeyevent.altKeyevent.ctrlKeyo事件返回值event.returnValueo鼠标位置event.xevent.yo窗体活动元素document.activeElemento绑定事件document

2、.captureEvents(Event.KEYDOWN);o访问窗体元素document.all("txt").focus();document.all("txt").select();o窗体命令document.execCommando窗体COOKIEdocument.cookieo菜单事件document.oncontextmenuo创建元素document.createElement("SPAN"); o根据鼠标获得元素:document.elementFromPoint(event.x,event.y).tag

3、Name=="TDdocument.elementFromPoint(event.x,event.y).appendChild(ms) o窗体图片document.images[索引]o窗体事件绑定document.onmousedown=scrollwindow;o元素document.窗体.elements[索引]o对象绑定事件document.all.xxx.detachEvent('onclick',a);o插件数目navigator.pluginso取变量类型typeof($js_libpath)=="unde

4、fined"o下拉框下拉框.options[索引]下拉框.options.lengtho查找对象document.getElementsByName("r1");document.getElementById(id);o定时timer=setInterval('scrollwindow()',delay);clearInterval(timer);oUNCODE编码escape(),unescapeo父对象obj.parentElement(dhtml)obj.parentNode(dom)o交换表的行TableID.m

5、oveRow(2,1)o替换CSSdocument.all.csss.href="a.css";o并排显示display:inlineo隐藏焦点hidefocus=trueo根据宽度换行style="word-break:break-all"o自动刷新o简单邮件 o快速转到位置obj.scroll

6、IntoView(true)o锚anchorso网页传递参数location.search();o可编辑obj.contenteditable=trueo执行菜单命令obj.execCommando双字节字符/[^x00-xff]/汉字/[u4e00-u9fa5]/o让英文字符串超出表格宽度自动换行word-wrap:break-word;word-break:break-all;o透明背景

7、height=180allowtransparency>o获得style内容obj.style.cssTextoHTML标签document.documentElement.innerHTMLo第一个style标签document.styleSheets[0]ostyle标签里的第一个样式document.styleSheets[0].rules[0]o防止点击空链接时,页面往往重置到页首端。wordo上一网页源asp:request

8、.servervariables("HTTP_REFERER")javascript:document.referrero释放内存CollectGarbage();o禁止右键document.oncontextmenu=function(){returnfalse;}o禁止保存

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。