JavaScript [object. Attributes] one of the highlights
SCRIPT marker
Used to contain JavaScript code.
Grammar
Attribute
LANGUAGE scripting language definition
SRC to define a specific URL to. Document at the end of JS
Windows object
Each of the top-level object HTML documents.
Attribute
Lo-frames [] array. Each sub-array-ching, according to the source documents stored in the definition of the order.
Feames.length number of Lo.
Self current window.
Father parent window (the window is in a sub-window).
Top top-level window (the window is all foreseeable father window).
Status browser window on the state of the news.
DefaultStatus status null and void when, in a browser window on the state of the default news.
Name internal name, because window.open () method to open the window the name of the definition.
Methods
Alert (the "message") to be displayed contain information "JavaScript Alert" dialog.
Confirm (the "message") to be displayed contain information "Confirm" dialog box (one OK button, and a Cancel button). If users click OK to return to the true, it returns false.
Prompt (the "message") that a "prompt" dialog box that requires a user to display information according to the corresponding input.
Open ( "URL", "name") to open a new window for a specified name.
Close () Close the current window.
Frame object
It is the browser window of the window, in addition to status, defaultStatus, name attribute, it has all the attributes of the window object.
Object location
Contains the current URL information.
Attribute
Href the URL string.
URL protocol contains the first part of the string, such as http:
Host contains the URL hostname: port, part of the string. Such as / / www.cenpok.net/server/
Hostname included in the URL hostname string. Such as http://www.cenpok.net
Port includes URL may exist in the port of string.
Pathname URL in the "/" after part. List such as ~ / index.htm
Hash "#" (CGI parameters) after the string.
Search "?" (CGI parameters) after the string.
Document object
Documents containing information of the current object.
Attribute
The current title document title, if undefined, includes "Untitled."
URL location of all documents.
LastModified containing documents last modified date.
Referrer caller URL, or URL from which users link to the current page.
BgColor background color (# xxxxxx)
FgColor prospects text color.
LinkColor hyperlink colors.
VlinkColor visited the hyperlink colors.
AlinkColor activation chain color (hold down the mouse did not release).
[] Document forms in the form object arrays, by definition sequence storage.
Forms.length document in the form of objects.
[] Links with all the documents linked corresponding array HREF targets, in order definition storage.
HREF links.length document the number of chain.
Sort anchor anchors [] array, in order definition storage.
Anchors.length anchor in the number of documents.
Methods
Write ( "string") will highlight the string to the current window. (String can contain HTML tags)
Writeln ( "string") and write () Similarly, in additional Enter at the end, the only scheduled format text (
…
Or
…
) Entered into force.
Clear ()-the current window.
Close () Close the current window.
Object form
Attribute
Name
NAME attribute the string value.
METHOD method in the class attribute value, "0" = "GET", "1" = "POST."
ACTION attribute action in the string value.
Form data submitted by the target goal, and the corresponding attribute the same markings.
Elements [index] attribute contains elements in the form of various elements.
Length of the number of elements in the table.
Methods
Submit () to the forms.
Event Processor onSubmit () users click a button to the definition of good form when running code.
Textarea objects and text
Attribute
Name NAME attribute the string value.
Value domain of the string value of the contents.
DefaultValue domain content of the initial string value.
Methods
Focus () object input focus.
Blur () to remove the objects from the input focus.
Select () selected targets of the input region.
Event Processor
OnFocus input into the focus of the enforcement.
When the domain onBlur lose focus of the implementation.
OnSelect when some jurisdictions were selected, the implementation of the text.
OnChange lose focus when the domain and domain onFocus value relative to the implementation of the Executive has to be changed.
Tags: css attributes, css javascript, xhtml attributes






Leave a Reply