SoftwareEngineering/ProgramLanguage/DHTML

Attributes/Properties

PropertyDescription
activeElementRetrieves the object that has the focus when the parent document has focus.
alinkColorSets or retrieves the color of all active links in the document.
bgColorDeprecated. Sets or retrieves a value that indicates the background color behind the object.
charsetSets or retrieves the character set used to encode the object.
compatModeRetrieves a value that indicates whether standards-compliant mode is switched on for the object.
cookieSets or retrieves the string value of a cookie.
defaultCharsetRetrieves the default character set from the current regional language settings.
designModeSets or retrieves a value that indicates whether the document can be edited.
dirSets or retrieves a value that indicates the reading order of the object.
doctypeRetrieves the document type declaration associated with the current document.
documentElementRetrieves a reference to the root node of the document.
domainSets or retrieves the security domain of the document.
expandoSets or retrieves a value indicating whether arbitrary variables can be created within the object.
fgColorSets or retrieves the foreground (text) color of the document.
fileCreatedDateRetrieves the date the file was created.
fileModifiedDateRetrieves the date the file was last modified.
fileSizeRetrieves the file size.
implementationRetrieves the implementation object of the current document.
lastModifiedRetrieves the date the page was last modified, if the page supplies one.
linkColorSets or retrieves the color of the document links.
parentWindowRetrieves a reference to the container object of the window.
protocolSets or retrieves the protocol portion of a URL.
readyStateRetrieves a value that indicates the current state of the object.
referrerRetrieves the URL of the location that referred the user to the current page.
uniqueIDRetrieves an autogenerated, unique identifier for the object.
URLSets or retrieves the URL for the current document.
URLUnencodedRetrieves the URL for the document, stripped of any character encoding.
vlinkColorSets or retrieves the color of the links that the user has visited.
XMLDocumentRetrieves a reference to the XML
XSLDocumentRetrieves a reference to the top-level node of the Extensible Stylesheet Language (XSL) document.

Collections

CollectionDescription
allReturns a reference to the collection of elements contained by the object.
anchorsRetrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
appletsRetrieves a collection of all applet objects in the document.
childNodesRetrieves a collection of HTML Elements and TextNode objects that are direct descendants of the specified object.
embedsRetrieves a collection of all embed objects in the document.
formsRetrieves a collection, in source order, of all form objects in the document.
framesRetrieves a collection of all window objects defined by the given document or defined by the document associated with the given window.
imagesRetrieves a collection, in source order, of img objects in the document.
linksRetrieves a collection of all a objects that specify the HREF property and all area objects in the document.
namespacesRetrieves a collection of namespace objects.
scriptsRetrieves a collection of all script objects in the document.
styleSheetsRetrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.

Events

EventDescription
onactivateFires when the object is set as the active element.
onbeforeactivateFires immediately before the object is set as the active element.
onbeforecutFires on the source object before the selection is deleted from the document.
onbeforedeactivateFires immediately before the activeElement is changed from the current object to another object in the parent document.
onbeforeeditfocusFires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.
onbeforepasteFires on the target object before the selection is pasted from the system clipboard to the document.
onclickFires when the user clicks the left mouse button on the object.
oncontextmenuFires when the user clicks the right mouse button in the client area, opening the context menu.
oncontrolselectFires when the user is about to make a control selection of the object.
oncutFires on the source element when the object or selection is removed from the document and added to the system clipboard.
ondblclickFires when the user double-clicks the object.
ondeactivateFires when the activeElement is changed from the current object to another object in the parent document.
ondragFires on the source object continuously during a drag operation.
ondragendFires on the source object when the user releases the mouse at the close of a drag operation.
ondragenterFires on the target element when the user drags the object to a valid drop target.
ondragleaveFires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
ondragoverFires on the target element continuously while the user drags the object over a valid drop target.
ondragstartFires on the source object when the user starts to drag a text selection or selected object.
ondropFires on the target object when the mouse button is released during a drag-and-drop operation.
onfocusinFires for an element just prior to setting focus on that element.
onfocusoutFires for the current element with focus immediately after moving focus to another element.
onhelpFires when the user presses the F1 key while the browser is the active window.
onkeydownFires when the user presses a key.
onkeypressFires when the user presses an alphanumeric key.
onkeyupFires when the user releases a key.
onmousedownFires when the user clicks the object with either mouse button.
onmousemoveFires when the user moves the mouse over the object.
onmouseoutFires when the user moves the mouse pointer outside the boundaries of the object.
onmouseoverFires when the user moves the mouse pointer into the object.
onmouseupFires when the user releases a mouse button while the mouse is over the object.
onmousewheelFires when the wheel button is rotated.
onmoveFires when the object moves.
onmoveendFires when the object stops moving.
onmovestartFires when the object starts to move.
onpasteFires on the target object when the user pastes data, transferring the data from the system clipboard to the document.
onpropertychangeFires when a property changes on the object.
onreadystatechangeFires when the state of the object has changed.
onresizeendFires when the user finishes changing the dimensions of the object in a control selection.
onresizestartFires when the user begins to change the dimensions of the object in a control selection.
onselectionchangeFires when the selection state of a document changes.
onstopFires when the user clicks the Stop button or leaves the Web page.

Methods

MethodDescription
attachEventBinds the specified function to an event, so that the function gets called whenever the event fires on the object.
clearNot currently supported.
closeCloses an output stream and forces the sent data to display.
createAttributeCreates an attribute object?with a specified name.
createCommentCreates a comment object?with the specified data.
createDocumentFragmentCreates a new document.
createElementCreates an instance of the element for the specified tag.
createEventObjectGenerates an event object for passing event context information when using the fireEvent method.
createStyleSheetCreates a style sheet for the document.
createTextNodeCreates a text string from the specified value.
detachEventUnbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
elementFromPointReturns the element for the specified x and y coordinates.
execCommandExecutes a command on the current document, current selection, or the given range.
focusCauses the element to receive the focus and executes the code specified by the onfocus event.
getElementByIdReturns a reference to the first object with the specified value of the ID attribute.
getElementsByNameRetrieves a collection of objects based on the value of the NAME attribute.
getElementsByTagNameRetrieves a collection of objects based on the specified element name.
hasFocusRetrieves the value indicating whether the object currently has focus.
mergeAttributesCopies all read/write attributes to the specified element.
openOpens a new window and loads a document specified by a given URL. This method can also be used to open a new window which uses the url and name parameters to collect the output of the write and writeln methods.
queryCommandEnabledReturns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
queryCommandIndetermReturns a Boolean value that indicates whether the specified command is in the indeterminate state.
queryCommandStateReturns a Boolean value that indicates the current state of the command.
queryCommandSupportedReturns a Boolean value that indicates whether the current command is supported on the current range.
queryCommandValueReturns the current value of the document, range, or current selection for the given command.
recalcRecalculates all dynamic properties in the current document.
releaseCaptureRemoves mouse capture from the object in the current document.
setActiveSets the object as active without setting focus to the object.
writeWrites one or more HTML expressions to a document in the specified window.
writelnWrites one or more HTML expressions, followed by a carriage return, to a document in the specified window.

Objects

ElementObjectDescription
BODYbodySpecifies the beginning and end of the document body.
implementationContains information about the modules supported by the object.
locationContains information about the current URL.
selectionRepresents the active selection, which is a highlighted block of text, and/or other elements in the document on which a user or a script can carry out some action.
TITLEtitleContains the title of the document.

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2014-07-29 (火) 09:01:47 (1962d)