Cascading Style Sheets Tutorial

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. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: css attributes, css javascript, xhtml attributes

Releated Posts

  • JavaScript [object. Attributes] Collection 3
  • JavaScript in the advanced features and special objects, attributes and methods
  • JavaScript [object. Attributes] LIBRARY bis
  • Javascript all object attributes access
  • JavaScript in the prototype (prototype) attributes study

This entry was posted on Tuesday, July 31st, 2007 at 12:00 am and is filed under Xhtml and Web Design. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« JAVASCRIPT DIV used to replace non-spacing to achieve the effect of rolling news
JavaScript object-oriented support (6) »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial