欢迎来到天天文库
浏览记录
ID:19300544
大小:36.00 KB
页数:15页
时间:2018-09-30
《javascriptdocument对象方法属性大全(javascriptdocument object method properties daquan)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、javascriptdocument对象方法属性大全(JavascriptdocumentobjectmethodpropertiesDaquan)JavaScript:documentobjectmethodpropertiesDaquaninJavaScript,documentobjectisaverycommonobject,providingawealthofpropertiesandmethods,itisalsoveryconvenienttouse.Letmesumupthesepropertiesand
2、methodsforyoutoviewwheneveryou'reusingthem.Note:inJavaScript,theobject'spropertiesandmethodsarecaseinsensitive,soyoumustuseitinthecorrectcase,otherwisetherewillbehintsofobjectsormethodsthatcannotbefound.DocumentobjectpropertiesDocument.getElementById("CC"),.GetEl
3、ementsByTagName("input");Document.title//setthedocumenttitleequivalenttoHTML
4、onthislinkcolor)Document.vlinkColor//hasclickedthelinkcolorDocument.URL//settheURLpropertytoopenanotherpageinthesamewindowDocument.fileCreatedDate//filecreationdate,read-onlyattributeDocument.fileModifiedDate//filemodificationdate,read-onlyattributeDocument.fileS
5、ize//filesize,read-onlyattributeDocument.cookie//setandreadcookieDocument.charset//setthecharacterset:GB2312documentChinesesimplifiedobjectmethodDocument.write(dynamic)//writecontenttothepageDocument.createElement(Tag)//createaHTMLtagobjectDocument.getElementById
6、(ID)//gettheIDvalueofthespecifiedobjectDocument.getElementsByName(Name)//gettheNamevalueofthespecifiedobjectDocument.body.appendChild(oTag)body-bodysubobjectStartdocument.body//andtheendofthespecifieddocumentsubjectisequivalentto
7、//setorgettheobjectbehindthebackgroundcolorDocument.body.link//notclickedthelinkcolorDocument.body.alink//activationlink(focusonthislinkcolor)Document.body.vlink//hasclickedthelinkcolorDocument.body.text//textcolorThetextset
8、etween...Setthe
此文档下载收益归作者所有