Script tag is used to include JavaScript code. Properties Language Defining Script Language SRC Defines a URL to specify the top-level object of each HTML document ending with .js. Properties frames [] array. Each child The order of the definitions in the document is stored. Feames.Length Subrigital. Self Current window. Parent Parent window (The current window is a child window). Top top window (the parent window of all visible windows). Status browser status window The message. DefaultStatus appears on the default message on the browser status window when STATUS is invalid. Name internal name, the name of the window defined by the window opened by the window.open () method. Method Alert ("Message") A "JavaScript Alert" dialog box for a given message. Confirm ("Message") Displays the "Confirm" dialog containing a given message (with a OK button and a Cancel button). If the user clicks OK Returns true, return false PROMPT ("Message") Displays a "Prompt" dialog that requires the user to give the corresponding input according to the display message. Open ("URL", "Name" opens a new window, give a specified name. Close () Close the current Window. Frame Objects It is the sub-window of the entire browser window. In addition to Status, DefaultStatus, Name properties, it has all properties of the Window object. Location object contains information about the current URL. Properties href entire URL string. Protocol contains URL Part of the string, such as http: Host contains a string of the host name in the URL: //www.cenpok.net/server/ HostName contains a string of the hostname in the URL. Such as http: // www .CenPok.net port contains a port number string that may exist in the URL. The part in the "/" in the PathName URL. Section after ~ List / INDEX.HTM HASH "#" (CGI parameter) after the string. Search "? The string after "CGI parameters). Document object contains the object of the current document information. Properties Title Current document title, if not defined, Contains "Untitled". Location document full url. LastModified contains the document last modified date. The REFERRER caller URL, that is, which URL is linked to the current page. BGColor background color. LinkColor hyperlink Color. VLINKCOLOR Access the super chain color. AlinkColor activation chain color (Mouse holds down the time). The array of FORM objects in the Forms [] document is stored in the defined order store. Forms.Length document Number. LINKS [ ] The array object corresponding to all HREF chains in the document is defined in order. The number of HREF chains in the links.length document. Anchors [] Anchor (...) array, defined in order. Anchors.Length Document Achile Number. Method WRITE ("String") Highlights the string to the current window. (String can contain HTML tags) Writeln ("string") is similar to Write (), appendicent, only in the scheduled format text Clear () clear the current window. Close () Turn off the current window. FORM object property Name string value of the Name attribute in Name. The class value of the Method property in Method, "0" = "get", "1" = " POST "
Action Action Attribute string value. Target submitted by Target Table data, consistent with the corresponding attributes in the tag. Elements [index] Elements property contains individual elements in the form. The number of elements in the LENGTH table. Method Submit () Submit Table. Event Processor OnSubmit () User Click on a defined button to submit the code running when the Form is running. Text and TextArea object properties Name Name properties string value. Value domain content string value. DefaultValue domain content initial characters String value. Method FOCUS () Sets the object input focus. Blur () removes the input focus on the object. Select () selects the input area of the object. Event processor onfocus is executed when entering the focus. Onblur is lost Execute. Onsect is executed when some text is selected when the domain is selected. OnChange is executed when the domain is lost and the domain value is executed when performing changes with the onFocus. Checkbox) Object Properties Name Name Property string value. Value Check the string value of the box content. If set, "ON", otherwise, "OFF". Checked check box content Boolean value. If set, True, otherwise false. DefaultChecked Reflections (checked ) Boolean (default). Method Click () Select the check box and make the status "ON". Event Processor OnClick execution when the user clicks CheckBox. Single click button (Radio) object properties Name Name Attribute string value. The number of radio buttons in the LENGTH Radio object. The value of the value of the value. Checked Boolean value, press True, otherwise false. defaultChecked reflects the Boolery value of the check attribute value. Click () Select the radio button. Event Processor OnClick is executed when the radio button is selected. Select Object Property LENGTH SELECT object's number of objects. Name is the internal name of the SELECT object defined by the name = property. SelectIndex Select The subscript currently selected in the object. Options Sexual corresponds to the content in the tag when defining the Select object in HTML, which has the following properties: text string after the Text tag. The value of the Value value property is submitted when the Submit button is pressed. DefaultSelected reflects the tag The Boolean value of the selected property. Selected reflects the Boolean value of the current selection status of Option. Event processor onfocus is executed when the input focus enters the domain. Onblur is executed when the domain lost the input focus. Onchange is lost to the domain and if the value of the domain There is a change in ONFOCUS, then there are three types of buttons in the onchange. Button object table, definition from the Type property in the tag: .submit (Type = "submit") .Reset (Type = "reset") .custom (Type = "Button") All button objects have the following ingredients: the character string value of the property value value. Name Name Attribute string value. Method Click () Seat button Event Processor OnClick is executed when the button is clicked. Submit And the content of the reset object property value value value = property. Name name = content of the property. Method Click () Selection button Event Processor OnClick is executed when the button is clicked. Password object property defaultValue value = Properties content. Name name =