Window
Alert (SMSG)
A confirmation message box pops up
Attachevent (sevent,pfunction)
Bind a function to an event that randomly executes one of the bound functions when the event is triggered
Blur ()
Cause window to lose focus
Clearinterval (Iintervalid)
Clears the associated function for the specified timer
Cleartimeout (Itimeoutid)
Clears the associated function of a specified delay
Close ()
Closes the window, and the confirmation dialog box pops up if the window is not opened with a script.
Confirm ([smessage])
The OK/Cancel dialog box pops up
Createpopup ([Vargs])
To create a hidden pop-up window, Vargs is the parameter to be given in the future, return the window handle
DetachEvent (sevent,pfunction)
Cancels one of the bound functions of an event
Execscript (Sexpression, slanguage)
Executes code in the specified language
Focus ()
Activate window
Moveby (Ix,iy)
Move a window in a relative way
MoveTo (Ileft,itop)
Move a window in absolute fashion
Navigate (sURL)
Go to the specified connection
Open ([sURL] [, sname] [, Sfeatures] [, Breplace])
Opens a new window and returns a window handle
Sname= (*_blank: Open a new unnamed window; _parent: Open in parent window; _search: Open Search window at the same time; _self: replace this window; _top: Open in top window; *)
sfeatures= (*channelmode = {yes | no | 1 | 0};d irectories = {yes | no | 1 | 0};fullscreen = {yes | no | 1 | 0};heig HT = Number;left = Number;location = {Yes | no | 1 | 0};menubar = {yes | no | 1 | 0};resizable = {yes | no | 1 | 0}; scrollbars = {yes | no | 1 | 0};status = {yes | no | 1 | 0};titlebar = {yes | no | 1 | 0};toolbar = {yes | no | 1 | 0};top = Number;width = number;*)
Print ()
Print the contents of the current window document
Prompt ([smessage] [, Sdefaultvalue])
Pop-up Input dialog box
Resizeby (IX, IY)
Change the window size in a relative way
Resizeto (iwidth, iheight)
Change the window size in absolute terms
Scroll (Ix,iy)
Scrolling windows, the same effect as Scrollto, the way to preserve them for compatibility reasons
Scrollby (IX, IY)
Scrolling a window in a relative way
Scrollto (IX, IY)
Scroll the window in absolute style
SetActive ()
Activate the target without turning the line of sight to the target
SetInterval (Vcode, Imilliseconds [, Slanguage])
Execute a piece of code at timed intervals
SetTimeout (Vcode, Imilliseconds, slanguage)
Delay execution of a piece of code
ShowHelp (sURL [, Vcontextid])
Open a Help file, sURL as the Help document address, Vcontextid as the Help index number
ShowModalDialog (sURL [, varguments] [, Sfeatures])
Open a modal dialog box
varguments= parameters to be passed to the new Open Mode dialog box
sfeatures= (*dialogheight:sheight;dialogleft:sxpos;dialogtop:sypos;dialogwidth:swidth;center:{yes | no | 1 | 0 | on | o FF};d ialoghide:{yes | no | 1 | 0 | on |-};edge:{Sunken | raised};help:{yes | no | 1 | 0 | on | off};resizable:{ Yes | No | 1 | 0 | On | Off};scroll:{Yes | no. | 1 | 0 | on |};status:{Yes | no | 1 | 0 | on | off};unadorned:{yes | no | 1 | 0 | F};*)
showModelessDialog (sURL [, varguments] [, Sfeatures])
Open a modeless dialog box
vargument= parameters to be passed to the new Open Mode dialog box
sfeatures= (*dialogheight:sheight;dialogleft:sxpos;dialogtop:sypos;dialogwidth:swidth;center:{yes | no | 1 | 0 | on | o FF};d ialoghide:{yes | no | 1 | 0 | on |-};edge:{Sunken | raised};help:{yes | no | 1 | 0 | on | off};resizable:{ Yes | No | 1 | 0 | On | Off};scroll:{Yes | no. | 1 | 0 | on |};status:{Yes | no | 1 | 0 | on | off};unadorned:{yes | no | 1 | 0 | F};*)
9:execcommand's full reference (Chinese version)
Document.execcommand (scommand[, interactive mode, dynamic parameters])
2d-position;document.execcommand ("2d-position", "false", "true"); objects that are absolutely positioned can be dragged directly; ie5.5
Absoluteposition;document.execcommand ("AbsolutePosition", "false", "true"), positioning the object to absolute positioning; ie5.5
Backcolor;document.execcommand ("BackColor", "false", scolor); set background color; ie4.0
Blockdirltr;none to make block-level elements typeset from left to right? does not support
Blockdirrtl;none to make block-level elements typeset from right to left? Bold;document.execcommand ("bold", "false", NULL) is not supported; the text in the selected area is bold; ie4.0
Browsemode;none, setting browser mode?; does not support Copy;
Document.execcommand ("Copy", "false", null); Copy the selected text to the Clipboard; ie4.0 Createbookmark;document.execcommand ("CreateBookMark "," false ", sanchorname); Sets the specified anchor point as a bookmark; ie4.0
Createlink;document.execcommand ("Createlink", "false", slinkurl); Turns the selected text into a hyperlink, and if the second argument is true, the Parameter Settings dialog box appears; ie4.0
Cut;document.execcommand ("Cut", "false", null); clipping selected text to clipboard; ie4.0
Delete;document.execcommand ("delete", "false", null); Delete the selected text; ie4.0
Dirltr;none: From left to right?; Dirrtl;none is not supported, the layout is from right to left. does not support
Editmode;none; set edit mode?; does not support
Fontname;document.execcommand ("FontName", "false", sfontname); Change the font of the selected area; ie4.0
Fontsize;document.execcommand ("FontSize", "false", ssize|isize); Change the font size of the selected area; ie4.0
Forecolor;document.execcommand ("ForeColor", "false", scolor); set foreground color; ie4.0
Formatblock;document.execcommand ("Formatblock", "false", stagname); Set the label name of the current block; ie4.0
Window A total of four parameters:
window.open (STR1,STR2,STR3,STR4)
STR1: The Address to open:
STR2: The name of the window, you can customize and take the following values:
_blank,_parent,_self,_top,_search,[ie5+ support],_media[ie6].
STR3: For property values:
STR4: Whether to open a new window: Take:
True or False