
Deletes the TFOOT element and its contents from the TABLE.
object.deleteTFoot()
No return value.
The following example deletes the TFOOT element,
document.all.myTable.deleteTFoot()
table
createTFoot, createTHead, createCaption, deleteTHead, deleteCaption
Deletes the THEAD element and its contents from the TABLE.
object.deleteTHead()
No return values.
The following example deletes the THEAD element,
document.all.myTable.deleteTHead()
table
createTFoot, createTHead, createCaption, deleteTFoot, deleteCaption
Performs the compound request accumulated in the read-requests queue. If the site does not already have read access, the user will be prompted with a list of attributes requested and can choose to allow or deny access.
navigator.userProfile.doReadRequest(usageCode [, friendlyName [, domain [, path [, expiration]]]])
Parameter Description usageCode Notification for the user of the type of access requested. This usage code should be one of the 13 codes (listed below) defined by the Internet Privacy Working Group (IPWG). friendlyName Optional. "Friendly name" of the party requesting access to private information. For security reasons, it is not enough for the user agent to display this friendly name to the end user. In addition to this friendly name, it is essential to display the URL that originates the script requesting profile access. If this script originates from a secure connection (for example, SSL), the SSL certificate can also be used to reliably identify the party requesting access. domain and path Optional. Which pages the user's choice will apply to in the future, in addition to the current one; the specification follows the cookie standard (RFC-2109 http://www.cis.ohio-state.edu/htbin/rfc/rfc2109.html). expiration Optional. How long the site is requesting access to these attributes. This is currently ignored by Internet Explorer.
Returns TRUE if successful, or FALSE otherwise.
The following table defines the usage codes.
Usage code values Meaning 0 Used for system administration. 1 Used for research and/or product development. 2 Used for completion and support of current transaction. 3 Used to customize the content and design of a site. 4 Used to improve the content of site including advertisements. 5 Used for notifying visitors about updates to the site. 6 Used for contacting visitors for marketing of services or products. 7 Used for linking other collected information. 8 Used by site for other purposes. 9 Disclosed to others for customization or improvement of the content and design of the site. 10 Disclosed to others, who may contact you, for marketing of services and/or products. 11 Disclosed to others, who may contact you, for marketing of services and/or products, but you will have the opportunity to ask a site not to do this. 12 Disclosed to others for any other purpose.
Returns a duplicate of the range.
TextRange = object.duplicate( )
Returns TextRange.
This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.
Returns the element for the specified x and y coordinates.
element = object.elementFromPoint(x, y)
Parameter Description x (Integer) X-offset, in pixels. y (Integer) Y-offset, in pixels.
Returns an element object.
Coordinates are supplied in window coordinates (0,0 is the top-left corner of the window). For elementFromPoint to exhibit expected behavior, the object or element located at position (x, y) must support and respond to mouse events. MouseEventsEnabled must be 1.
Deselects the current selection, sets the selection type to "none", and sets the item property to null.
object.empty( )
No return value.
Executes a command over the given selection or text range.
Boolean = object.execCommand(command [, bool [, value]])
Parameter Description command String specifying the command to execute. Can be any valid command identifier. bool Optional. Boolean value specifying whether to display a user interface if the command supports one. Can be TRUE or FALSE. If not given, defaults to FALSE. value Optional. Variant specifying a string, number, or other value to assign. Possible values depend on command.
Returns TRUE if the command is successful, or FALSE otherwise.
queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
Executes the script defined for the expression parameter in the language parameter. The language defaults to JScript.
object.execScript(expression , language)
Parameter Description expression String specifying the code to be executed. language String specifying the language in which the code is executed.
No return value.
Expands the range so that partial units are completely contained.
Boolean = object.expand(unit)
Parameter Description unit Units to move in the range. Can be one of the following:
character Expands a character. word Expands a word. A word is a collection of characters terminated by a space or other white-space character. sentence Expands a sentence. A sentence is a collection of words terminated by a punctuation character, such as a period. textedit Expands to enclose the entire range.
Returns TRUE if it successfully expands the range, or FALSE otherwise.
This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.
The following example creates a range from the current selection, then uses expand to ensure that any word partially enclosed by the range becomes entirely enclosed in the range.
var rng = document.selection.createRange(); rng.expand("word");
Searches for text in the document. Positions the start and end points of the range to encompass the search string.
Boolean = object.findText(text)
Parameter Description text String specifying the text to find.
Returns TRUE if the search text is found, or FALSE otherwise.
This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.
Causes a control to receive the focus and executes the code specified by onfocus.
object.focus( )
No return value.
A, APPLET, AREA, BODY, BUTTON, CAPTION, DIV, EMBED, FIELDSET, FRAME, FRAMESET, HR, IFRAME, IMG, INPUT, MARQUEE, OBJECT, SELECT, SPAN, TABLE, TD, TEXTAREA, TR, window
Loads the next URL in the History list.
object.forward( )
No return value.
This method performs the same action as a user choosing the Forward button in the browser. The forward method is the same as history.go(1). Trying to go past the end of the history does not generate an error. Instead, you are left at the current page.
Retrieves the value of the given attribute.
variant = object.getAttribute(attrName [, caseSensitive])
Parameter Description attrName String specifying the name of the attribute. caseSensitive Optional. Boolean value specifying whether to use a case-sensitive search to locate the attribute. If TRUE, the uppercase and lowercase letters in attrName must match exactly those in the attribute name. By default, this parameter is FALSE. If the caseSensitive for setAttribute is set to TRUE and this option is set to FALSE (default), a conflict will arise.
Returns a string, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns null.
If two or more attributes have the same name (differing only in uppercase and lowercase letters) and caseSensitive is FALSE, this method retrieves values only for the last attribute (the last to be created with this name). All other attributes of the same name are ignored.
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IFRAME, IMG, INPUT, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XMP, style
Returns the value of the named attribute. If read access for this attribute is not already available, this method simply returns the NULL string.
navigator.userProfile.getAttribute(attributeName, attributeValue)
Parameter Description attributeName One of the standard vCard names (listed below); otherwise the request is ignored and nothing is returned. attributeValue Value stored in the attributeName parameter.
The following schema is used for the field names of the user data store. These names are specified when using the getAttribute method on the userProfile object. Please note that the format has changed from vCard_xxx to vCard.xxx and that the older format will no longer be supported.
vCard.Email vCard.DisplayName vCard.FirstName vCard.LastName vCard.MiddleName vCard.Cellular vCard.Gender* vCard.JobTitle vCard.Pager vCard.Company vCard.Department vCard.Notes vCard.Office vCard.Homepage vCard.Home.StreetAddress vCard.Home.City vCard.Home.State vCard.Home.Zipcode vCard.Home.Country vCard.Home.Phone vCard.Home.Fax vCard.Business.StreetAddress vCard.Business.City vCard.Business.Phone vCard.Business.Fax vCard.Business.URL vCard.Business.State vCard.Business.Country vCard.Business.Zipcode Note (*) asterisk denotes extensions to the vCard schema, which will be referenced as X- elements as defined in the vCard schema.
Retrieves a bookmark (opaque string) that can be used with moveToBookmark to return to the same range.
string = object.getBookmark( )
Returns a string if successful, or null otherwise.
This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.
Loads a URL in the History list.
object.go(delta | location)
Parameter Description delta | location delta is an integer representing a relative position in the History list. location is a string representing all or part of a URL in the History list.
No return value.
Trying to go past the beginning or end of the history does not generate an error. Instead, you are left at the current page.
Returns whether the specified range is within or equal to the current range.
Boolean = object.inRange(compareRange)
Parameter Description compareRange (TextRange) Range object.
Returns TRUE if within range, FALSE otherwise.
This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.
Inserts the given HTML text into the element at the given place. If the text contains HTML tags, the method parses and formats the text as it inserts.
object.insertAdjacentHTML(where, text)
Parameter Description where String specifying where to insert the HTML text. Can be one of the following:
BeforeBegin Inserts the text immediately before the element. AfterBegin Inserts the text after the start of the element but before all other content in the element. BeforeEnd Inserts the text immediately before the end of the element but after all other content in the element. AfterEnd Inserts the text immediately after the end of the element. text String specifying the HTML text to insert. The string can be a combination of text and HTML tags. This must be well-formed, valid HTML or this method fails.
No return value.
You cannot insert text while the document is loading. Wait for the onload event before attempting to call this method.
A, ADDRESS, AREA, B, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COMMENT, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TD, TEXTAREA, TH, TR, TT, U, UL, VAR, XMP
Inserts the given text into the element at the given place. The method inserts the text as plain text.
object.insertAdjacentText(where, text)
Parameter Description where String specifying where to insert the text. Can be one of the following:
BeforeBegin Inserts the text immediately before the element. AfterBegin Inserts the text after the start of the element but before all other content in the element. BeforeEnd Inserts the text immediately before the end of the element but after all other content in the element. AfterEnd Inserts the text immediately after the end of the element. text String specifying the text to insert.
No return value.
You cannot insert text while the document is loading. Wait for the onload event before attempting to call this method.
A, ADDRESS, AREA, B, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COMMENT, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OL, OPTION, P, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TD, TEXTAREA, TH, TR, TT, U, UL, VAR
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.