Javascript[object. Properties] Highlights of the three

Source: Internet
Author: User
Tags array contains html tags string window
Object Document Object


An object that contains information about the current document.

Property

Title of the current document, if not defined, contains "untitled".

Location the full URL of the document.

LastModified contains the date the document was last modified.

Referrer the caller URL, which is the URL from which the user is linked to the current page.

bgcolor background color (#xxxxxx)

Fgcolor foreground text color.

LinkColor the hyperlink color.

Vlinkcolor the hyperlink color accessed.

Alinkcolor Activate chain color (when mouse hold is not placed).

Forms[] An array of form objects in the document, stored in a defined order.

Forms.length the number of form objects in the document.

Links[] The array object that corresponds to all the href chains in the document, defining the store in order.

The number of href chains in the Links.length document.

Anchors[] Anchor (...) Array, which defines the storage in order.

Anchors.length the number of anchors in the document.


Method

Write ("string") highlights the string to the current window. (Strings can contain HTML tags)

Writeln ("string") is similar to write (), appending a carriage return at the end, only in the predetermined format text (

...
Or
...
Effect.

Clear () the current window.

Close () Closes the current window.



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.