Window window object - return value: It opens the window object. ---- VAR newWindow = Open ('', '_ blank'); - Property ---- Name window name, by opening its connection () or framepage page ( ) or an open () method (see) of the open ()) is determined. Generally we do not use this attribute. ---- Status refers to the content displayed below the "Status Bar" below the window. By assigning the status, you can change the display of the status bar. ---- Opener usage: window.opener; Returns the window object to open this window. Note: Returns a window object. If the window is not opened by another window, this attribute returns null in NetScape; returns "undefined) in IE. Undefined is equal to NULL to some extent. Note: undefined is not a JavaScript constant, if you try to use "undefined", it really returns "undefined". ---- Self pointing the window itself, the object it returns to the Window object is exactly the same. The most commonly used "Self.close ()", placed in tag: " Close window ". ---- Parent Returns the frame page object to which the window belongs. ---- TOP returns the top of the top frame page object occupied by the entire browser window. - Method ---- Open () opens a window. Usage: Open (, , ); ------ parameter string ------- top = # Window top Leaving the top of the screen Number of pixels -------- Left = # Window left left on the left side of the pixel number -------- Width = # Window Width -------- Height = # window Height - ------- MenuBar = ... No menu, value yes or no -------- Toolbar = ... window has a tool bar, value Yes or no ---- ---- Location = ... Window has no address bar, value yes or no -------- Directories = ... window has no connection area, value yes or no ------ --scrollbars = ... Window has no scroll bar, value yes or no -------- status = ... window has no status bar, value yes or no -------- The resizable = ... window does not give the adjustment size, value yes or no ---- Close () Close an open window. ---- Blur () makes the focus from the window, the window changes to the "Non-active window". ---- FOCUS () is a window to get focus and become a "active window". However, in Windows 98, this method can only flash the title bar of the window and the corresponding button on the taskbar, prompting the user that the window is trying to get the focus. ---- Scrollto () Usage: [.] Scrollto (x, y); roll the window so that the document is rolled from the upper left angle (x, y) to the upper left corner of the window.
---- Scrollby () Usage: [.] scrollby (deltax, deltay); Roll the window to the right to scroll down the Deltay pixels. If the negative value is taken, scroll in the opposite direction. ---- ResizTo () Usage: [.] resizeto (width, height); adjust the window to the width width pixel, high HEIGHT pixels. ---- Resizeby () Usage: [.] Resizeby (deltaWidth, DeltaHeight); adjust the window to adjust the size, increase the deltaHEIGHT pixels. If the negative value is taken, it is reduced. ---- Alert () Usage: Alert (); pop up a dialog box that contains only the "OK" button, display content, read the entire document, Script runs, until The user presses "OK". ---- confirm () usage: confirm (); pop up a dialog box containing the "OK" and "Cancel" button, display the content of the , requires the user to make a selection, read the entire document Take it, Script run will be suspended. Returns the true value if the user presses "OK", if "cancel" is pressed, then returns the false value. ---- prompt () usage: prompt ( [, ]); pop up a dialog box containing "confirmation" "cancel" and a text box, display content, request The user enters some data in the text box, the reading of the entire document, and the operation of Script will be suspended. If the user presses "confirm", return to the content existing in the text box, return NULL values if the user presses "cancel". If you specify , there will be a default value in the text box. - Event ---- ONLOAD ---- Onunload ---- OnResize ---- Onblur ---- ONFOCUS ---- OneRror
Document Document Object Describes the documentation of the current window or specifying a window object. It contains the content from
to body>. - Usage: Document (Current Window) or
.document - Property: ---- Cookie About cookies See "Use Framework and Cookies" chapter. ---- LastModified current Document The last modification date is a Date object. ---- Referrer If the current document is opened by clicking on the connection, Referrer returns the original URL. ---- title refers to the text of ... title> in the tag. This property does not accept assignment in Netscape. ---- FGColor refers to the text color represented by the text property of the tag. ---- BGColor refers to the background color represented by the BGColor property of the tag. ---- LinkColor refers to the connection color represented by the LINK property of the tag. ---- AlinkColor refers to the active connection color represented by the ALINK attribute of the tag. ---- VLINKCOLOR NETATING VLINK Attributes indicated by the VLINK attribute of the "Body>. - Method ---- Open () Opens the document so that JavaScript can write data to the current location of the document (refer to where JavaScript is inserted). Usually do not need this method, JavaScript is automatically called when needed. ---- Write (); WriteLn () Write the data to the document, which is written as a standard document HTML. The difference between Writeln () and Write () is that Writeln () will add a wrap after writing data. This wrap is only in HTML, and the specific situation can be unable to be displayed, and the location of the JavaScript is inserted. If inserted into the mark, this wrap will also be embodied in the document. ---- Clear () Clears the current document. ---- Close () Close the document and stop writing data. If the Write [Ln] () or CLEAR () method is used, you must use a close () method to ensure that the changes made can be displayed.
Forms []; Form form object - Usage ---- Document.Forms [] is an array that contains all forms in the document (