Browser Environment Variables

Source: Internet
Author: User

Notes on Common Browser environment variables:

1. Window object: it describes a browser window;
Localstorage object: Local Storage, three methods: getitem, set (Key, value), remove (key) ==> document..doc umentelement :. addbehavior ('# default # userdata'); store. save ('local storage variable name'); => set: store. setattribute (Key, value); store. save (store_name); get: store. load (store_name); Return store. getattribute (key); remove: store. removeattribute (key); store. save (store_name );

2.doc ument object: access all elements of JavaScript HTML documents through HTML Dom. HTML dom (Document Object Model) when a webpage is loaded, the browser creates a Document Object Model for the page ). Tree where the HTML Dom model is constructed as an object

3. Navigator: appname appversion of the browser currently in use

4.

Browser Environment Variables

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.