Some JavaScript Functions and objects

Source: Internet
Author: User

Object

====================

Location

This object stores the information of the current URL. It is part of the window object and can be obtained through the windows. location attribute.

 

Document

Any HTML document loaded into the browser will become a document Object. the document Object provides a way for scripting to access all HTML elements on the page. document is a part of the window object, which can be obtained through the parameter Doc ument attribute.

 

Window

This object represents an open window in the browser. if a document contains frames (<frame> or <iframe> tags), the browser creates a window object for the html document and creates a window object for each frame.

 

Function

====================

Escape ()

Used to decode the encoded string.

 

Split (saparator, limit)

Splits a string using the specified separator and returns an array of strings.

 

Push (element1, element2 ,... Elementx)

Add the element to the end of the array and return the length of the new array.

 

Array. join (separator)

This method concatenates all elements of an array into a string and returns the new string.

 

Source:

Http://wwww.w3schools.com/

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.