jQuery uses the complete status value to determine whether the DOM tree is fully loaded.Document.doc umentElement returns the document root element (HTMLHtmlElement) document.doc umentElement. currentStyleIE exclusive method, get the element style document.doc umentElement. contains () IE is used to determine whether the document contains the specified node element document.doc umentElement. compareDocumen
WORD2010 has multiple document windows that are viewed side-by-side, and you can compare the contents of different windows by looking at each other with multiple windows. The steps for implementing side-by-view windows in Word2010 are described below:
In step 1th, open two or more Word2010 document windows and switch to the view Ribbon in the current document
document1. document.documentelement.clientwidth[height] ==> Visible area width is high (because the document is not wide, so add documentelement, where document.documentelement can be replaced with any element with a wide height attribute, the same as below)Document.documentelement.scrolltop[left] ==> scroll bar scrolling distance (with compatible chrome that the scroll button counts as the body)compatible Processing:var scrolltop=document.documentel
Windows-represents an open window in the browser:Object PropertiesWindow//Windows themselvesWindow.self//cite this window window=window.selfWindow.name//Name the windowWindow.defaultstatus//Setting window status bar informationWindow.location//url address, equipped with this property to open a new pageObject methodsWin
The document window displays the current document. You can select any of the following views:
Design view a design environment for visualizing page layouts, visual editing, and rapid application development. In this view, Dreamweaver displays a fully editable visual representation of the document, similar to what you
$ (Document). ready () in Jquery is similar to the window. onload method in traditional JavaScript, but it is different from the window. onload method.
1. execution time
Window. onload can only be executed after all elements including images in the page are loaded.
$ (Document
The document window
The document window displays the current document. You can select any of the following views:
Design view is a design environment for visualizing page layouts, visual editing, and rapid application development. In this view, Dreamweaver displays a fully
Dreamweaver Basics: The document window for DWThe Documents windowThe document window displays the current document. You can select any of the following views:Design view is a design environment for visualizing page layouts, visual editing, and rapid application development.
Returns the document root element (HTMLHtmlElement)Document.doc umentElement. currentStyle
Unique IE Method to get element stylesDocument.doc umentElement. contains ()
Dedicated to IE, used to determine whether a document contains a specified node ElementDocument.doc umentElement. compareDocumentPosition ()
This method is supported by comparing the current node with the specified node's
Window object:DOM: Document Object Model--tree modelDocuments: Tag documents, objects: documents in each Element object, model: abstract ThingsA: window:Property (value or Sub-object):Opener: Opens the source window of the current window, if the current window is open for th
First, Window object-------------------------------------------------- -------------------Object PropertiesWindow//Windows themselvesWindow.self//cite this window window=window.selfWindow.name//Name the windowWindow.defaultstatus//Setting window status bar informationWindow.location//url address, equipped with this pro
Http://www.cnblogs.com/piuba/archive/2013/01/06/2847295.html
The jquery (window). Height () represents the size of the currently visible area, and jquery (document). Height () represents the height of the entire document, and is used visually.
Note the jquery (window) When the browser
Today, in the work of the OnLoad event, found some interesting things, such as generally speaking, if we need to bind a DOM structure to an event, we generally use the following method (for example, Window object):PhenomenonWindow.onload = function () {console.log (' To execute both methods, you can see the following:Note that both methods are triggered, and at this point the IE performance is consistent.Next, let's try the
document. createElement method.
Document. createEl = document. createElement;Document. createElement = function (obj ){If (obj. toString (). indexOf ("Return jq (obj) [0];}Else {Return document. createEl (obj );}}
No exceptions have been found in ie.
All those familiar with
programmer once used this event to make it difficult for visitors to leave the page. Each time a visitor tries to close the page, a new window appears and returns to the page. However, you can also use this event to do some good things. For example, a program can warn a visitor that he has already started filling out a form but has not yet submitted it, or that the program can send form data to the Web server to save the data before the visitor exits
Most jquery instances or tutorials tell us to bind our jquery code to $ (document). Ready event. Although the $ (document). Ready event is OK in most cases, it is parsed in the order that the document is prepared, but objects such as pictures in the document are running when the object is being downloaded. So at some p
Onload event and window, document, body, onloaddocument
I used the onload event in my work today and found some interesting things. For example, if we need to bind an event to a DOM structure, we generally use the following method (taking the Window object as an example ):
[Symptom]
window.onload = function() {console.log('To execute these two methods, you can s
(htmlhtmlelement)
Document.documentElement.currentStyleIE unique method, get element style
Document.documentElement.contains ()ie, used to determine whether a document contains a specified node element
Document.documentElement.compareDocumentPosition ()
Compares the current node to the document location of the specified node IE9 support this method
For specific information see http://www.jb51.net/article
$ (document). ScrollTop () Gets the distance from the vertical scroll (that is, the distance from the top of the window to the top of the page where the current scroll is scrolled)$ (document). ScrollLeft () This is the distance to get the horizontal scroll barTo get the top only need to get to scrolltop () ==0 is the top of theTo get to the bottom, just get scro
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.