JavaScript Rhino Book Learning notes (i) Javascript__java in Web browsers

Source: Internet
Author: User
Client JavaScript

The Window object is the primary access point for all client JavaScript features and APIs. It represents a window or form in a Web browser and can be referenced using the identifier window. The Window object defines some properties, such as the Location property of the Location object. The Window object also defines some methods, such as alert (), settimeout ().

Note that the above code does not explicitly use the Window property. Javascript,window objects are also global objects on the client.

One of the most important properties in the Window object is document, which refers to the Document object, which represents the documents in the display window. The Document object has some important methods.

Two very important data types in JavaScript are objects and arrays

Three types of JavaScript objects are distinguished from two types of attributes: built-in objects (native object) are objects and classes defined by the ECMAScript specification, such as arrays, functions, dates, and regular expressions are built-in objects. A host object is a hosted environment (such as a Web browser definition) that is embedded by the JavaScript interpreter. The HtmlElement object of the Web page structure represented in client JavaScript is the host object. Custom objects have property inherited properties that are defined in the object's prototype object.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.