javascript js all global attributes and methods -window

. 1  window Method:
 2  
. 3 Open (URL, the name of the window, the window style) // open a new window, and loads the web page specified in the URL address in the window 
. 4 Close () // Close method for automatically closing the browser window 
5 alert (prompt string) // pop up a warning box 
6 confirm the (prompt string) // display a confirmation box, returned when the user clicks the "OK" button which true, click "cancel" when it returns false. 
. 7 prompt (prompt string, the default text) // an input field when the user clicks the "OK" button returns the string entered by the user, when the click "Cancel" button to return a null value 
. 8  the setTimeout (Code character expression, milliseconds)
 . 9  the clearTimeout ()
 10  the setInterval ()
 . 11  the clearInterval ()
 12 is moveBy (horizontal displacement and vertical displacement amount) // the given pixel parameter specifies the window movement 
13the moveTo (x, y) // move the window to a specified designated coordinates (x, y) at 
14 resizeBy (horizontal, vertical) // will change the current window size specified (x, y), when the values of x, y, greater than 0 to expand, shrink less than 0 
15 the resizeTo (horizontal width and vertical width) // current window is changed to (x, y) size, x, y are the width and height 
16 scrollBy (horizontal displacement, vertical the amount of displacement) // the contents of the window by a given amount of displacement of the scrolling. When the argument is positive, rolling forward, otherwise reverse scrolling. 
17 scrollTo (the X-, the y-) // The contents of the window to scroll to the specified location 
18 find () // When the trigger which will pop up a "find" (Find) dialog window, and allows the user to trigger the find method page to find a string. 
19 the Back () // simulate user clicks the "back" button on your browser, the browser page to the previous page, the current page only when there is Previous to this operation 
20 Forward () // simulate user click the "forward" button on your browser, the browser will go to the next page only when the current page to the next page exists to carry out the operation 
21Home () // simulate the user clicks on the "Home" button on your browser, go to the page on the specified page 
22 STOP () // simulate user clicks the "Stop" button on your browser, the browser downloads the termination operation 
23 Print () // simulate user clicks the "Print" button on your browser to notify the browser to open the Print dialog box to print 
24- Blur () // removed focus from the window. When combined with the focus method must be careful, because it may lead to focus constantly moving in and out. 
25 Focus () // so obtained in the focus window. When combined with blur method must be careful, because it may lead to focus constantly moving in and out 
26 captureEvent (Event 1 | Event 2 | ... | event the n-) // capture all the events specified parameters. Because what events by the local program can capture their own process so the programmer can define a function to handle the event. If there are multiple events need to capture, use the pipe symbol between each event "|" separated. Event types may be captured as 
27 releaseEvent (| Event 2 | ... | Event 1 Event n-) // release parameters passed by the event has been captured, these events are provided by a method window.captureevent, releasable captureevent same event 
28ableExternalCapture (Event) // enableexternalcapture method for capturing the parameters passed to external events 
29 disableExternalCapture () // unset enableexternalcapture method of terminating capture external events of 
30 handleEvent (Event) // event handler for the specified event triggers 
31 is routeEvent (event) // all types of events are captured transferred to standard processing method for processing an event, the event may be transmitted in the same captureevent 
32 Scroll (X coordinate, y coordinate) // move the window to a specified coordinate position 
33  
34 is  
35  window property:
 36  
37 [ status = string // set the browser window, or given the current status bar displays information, can use the property browser window status bar 
38 is StatusBar property. @ StatusBar property itself is a objects for accessing its own visible attribute to determine the status bar is visible 
39statusbar.visible // check the status bar is visible, if visible returns true, otherwise returns to false 
40 defaultStatus [= String] // defaultStatus attribute value is the default browser window displaying information about the status bar 
41 is LOCATION = URL // Tell the current url information specified window or open windows url. 
42 locationBar. Attribute // locationBar property can also be seen as a sub-object, this attribute is used to obtain its own visible property to determine the location bar is visible. 
43 locationbar.visible // returns the location bar is visible, if visible returns true, contrary to return false 
44 Self // window.self. Method window.self. The property contains the attribute flag of the current window, use this property, you can ensure that more than the case of a window is opened, the correct call functions or attributes within the current window without chaos 
45 name = name //Returns the window name, which is when you create a new window by the window.open () method given. In javascript1.0 version, this property can only be used to read the name of the window, and when to javascript1.1 version, you can use this property to a not use window.open () method creates a window to specify a name. 
46 is closed // Examples closed for returning property specifies whether the window has been closed, if closed, returns true conversely return flase. 
47 Frames [ "frame name"] window.frames [value] // Frames property is an array of sub-window to store a document created by each element instance (frame), i.e., where the subscript sequence number may also be It may be a name attribute specifies the name of the frame element to get and use. 
48 frames.length // number of neutrons frames.length attributes for giving the document window instance (frame) 
49 length // length property returns the number of a child window within the window, the attribute property window.frame.length values are the same. 
50 document // window.document. Event window.document. Method window.document. Child objects document properties window object is the core javascript object, create an instance of the face of the body element in the script. 
51History // the window.history [value] window.history. Method () window.history. window.history.back property () loaded on a history list urlwindow.history.forward () to load the next history list object urlwindow sub-object history is one of the core javascript object, the property contains an array name has been accessed and url of the page. 
52 innerHeight = value // height in pixels or specify the return of documents in a browser window, the height of the page does not include any toolbars and window composed of highly modified 
53 innerWidth = value // Returns or specified pixel width of the browser window in the document, the width of the page does not include any toolbars and window consisting of modified width 
54 MenuBar. attribute // MenuBar property can also be seen as a sub-object, this attribute is used to obtain its own visible property to determine the menu bar is visible 
55 MenuBar. visible // menubar.visible property is used to return to the menu bar is visible, if visible returns true, and vice versa returns false. 
56 opener //window.opener window.opener. The method of the window.opener. attribute opener properties associated with the parent window opens, when accessing the sub-window operer property returns the parent window. By this property, can be used in the method of the parent window object and attribute 
57 is outerHeight // outerHeight property browser window for accessing the pixel height which comprises a highly decorative side toolbars and 
58 outerWidth // outerWidth browser for accessing the property pixel width of the window, including the width of the toolbar and width of the decorative side 
59 pagexoffset = value // Specifies the browser window in the upper left corner of the current level of the document in the window of pixel locations. Before use moveto movement, this property may be determined by the need to move the window. Since this property returns the document relative to the current position of the entire visible page 
60 pageyoffset value = // specified document browser window current vertical position of the top left pixel in the window. Before use moveto movement, this property may be determined by the need to move the window. Since this property returns the document relative to the current position of the entire visible page 
61 is parent // window.parent.frames [value] window.parent.framesname access to each sub-window (multi-frame) where the parent window 
62 is personalbar. Properties// personalbar property itself is a target for accessing its own visible property to determine individual bar is visible 
63 personalbar.visible // determine individual bar is visible, if visible returns true, otherwise returns false 
64- ScrollBar // scrollbars property itself is a target for accessing its own visible property to determine the scroll bar is visible 
65 scrollbar.visible // scrollbars.visible used to determine the scroll bar is visible, if visible returns true, otherwise returns false. 
66 Toolbar // Toolbar property itself is a target for accessing its own toolbar visible property to determine whether or not visible 
67 toolbar.visible // toolbar.visible attribute is used to check whether the toolbar is visible, if visible returns true, and vice versa Back to false 
68 Top // window.top.frames [value] window.top.framename window.top. method () window.top. top properties window object containing all child windows to the browser loaded (multiple frames ) information topmost window

 

Guess you like

Origin www.cnblogs.com/weihexinCode/p/12318281.html