资源描述:
《JS所有函数集合》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、JS所有函数集合Thelick()object.Click()causestheobjecttobeclicked.Closedobject,・Closedobjectwindowisclosed,true/falseClearTimeout(object)clearsthesetTimeoutobjectthathasbeensetClearInterval(object)clearsthesetintervalobjectthathasbeensetConfirm(tooltip)popsuptheconfinnation
2、boxtoconfirmtruereturnsandreturnsfalseCursor:styleschangemousestyles,hand,crosshair,text,wait,help,default,auto,e/s/w/n-resizeEvent.clientXreturnsthelastclickofthemouseXcoordinatevalue;Event.dientYreturnsthelastclickofthemouseYcoordinatevalue;Event.offsetXreturnsthe
3、currenthoverXcoordinatevalueEvent.offsetYreturnsthecurrenthoverYcoordinatevalueLastupdatetimeofdocument.write(document・lastModified)webpageDocument.ondblclick=xgenerateseventswhendoubleclickingthemouseDocument.onmousedown二xclickthemousebuttontogenerateaneventDocumen
4、t・body.scrollTop;returnsandsetsthecoordinatevalueofthecurrentverticalscrollbar,whichmustbecoordinatedwiththefunction,Document・body.scrollLeft;returnsandsetsthecoordinatevalueofthecurrenthorizontalscrolltransaction,whichmustbecoordinatedwiththefunction,Document・title
5、document・title二"message";thetitlebarofthecurrentwindowDocument.bgcolordocument・bgcolor二"colorvalue";changethewindowbackgroundcolorDocument・Fgeolordocument・Fgcolor=colorvalues;changethetextcolorDocument・linkcolordocument.1inkcolor二colorvalue;changethejoincolorDocumen
6、t.alinkcolordocument.alinkcolor二colorvalue;changethecoloroftheclickedjoinDocument・VlinkColordocument・VlinkColor=colorvalue;changesthecoloroftheaccessconnectionDocument.forms・lengthreturnsthesingularnumberofthecurrentpageformtableDocument・anchors・lengthreturnsthenumb
7、erofanchorpagesinthecurrentpageDocument・links・lengthreturnsthenumberofconnectionstothecurrentpageDocument.onmousedown=xclickthemousetotriggertheeventDocument.ondblclick二xdoubleclickthemousetotriggertheeventDefaultstatuswindow.status二defaultstatus;setsthedefaultdispl
8、ayofthestatusbarThefunction,function,XX(){・・・}definesthefunctionTheisNumericdetermineswhetheritisanumberTheinnerHTMLxx二object・InnerHTMLent