Java script脚本常用代码(全)(国外英语资料)
Java script脚本常用代码(全)(国外英语资料)
Java script script code (complete)
Click () object. Click () causes the object to be clicked
Closed object. Closed object window has closed true/false
ClearTimeout (object) clears the setTimeout object already set
ClearInterval (object) clears the setInterval object already set
Confirm (" prompt information ") pop-up confirmation box to determine return true to return false
Cursor: the style changes the mouse style hand crosshair text wait help default auto e/s/w/n - resize
Event.clientx returns the last click of the mouse X
Event.clienty returns the last click of the mouse Y
Event.offsetx returns the current mouseover X position
Event.offsety returns the current hover over the Y value
The last time the document.write (document.lastmodified) page is updated
Document.ondblclick = x when you double-click the mouse to generate an event
Document.onmousedown = x clicks the mouse button to produce an event
Document. The body. The scrollTop; To return and set the coordinates of the current vertical bar,
Document. Body. ScrollLeft; To return and set the coordinates for the current horizontal scrolling,
Document. Title = "message"; The title bar of the current window
Document.bgcolor document.bgcolor = "color value"; Change the background color of the window
Document.fgcolor document.fgcolor = "color value"; Change body color
Linkcolor document.linkcolor = "color value"; Change the hyperlink color
Document.alinkcolor document.alinkcolor = "color value"; Change the color of the click join
Document.vlinkcolor document.vlinkcolor = "color value"; Change the color of the access connection
Document.form.length returns the current form count
Document.anchors. Length returns the current number of anchor pages
Document.links. Length returns the number of current page joins
Document.onmousedown = x click the mouse trigger event
Document.ondblclick = x double-click the mouse to trigger the event
DefaultStatus window. The status = defaultStatus; Set the sta