search
HomeWeb Front-endH5 Tutorialhtml5 guide-2. How to operate document metadata_html5 tutorial tips

Today’s content is about how to operate document objects.
1. Manipulate Document Metadata
First, let’s take a look at the related attributes:
characterSet: Get the encoding method of the current document. This attribute is read-only;
charset: Get Or set the encoding method of the current document;
compatMode: Get the compatibility mode of the current document;
cookie: Get or set the cookie object of the current document;
defaultCharset: Get the browser's default encoding method;
defaultView: Get the window object of the current document;
dir: Get or set the text alignment of the current document;
domain: Get or set the domian value of the current document;
implementation: Provide the supported dom features information;
lastModified: Get the last modified time of the document (if there is no last modified time, return the current time);
location: Provide the URL information of the current document;
readyState: Return the status of the current document, This attribute is a read-only attribute;
referrer: Returns the document url information connected to the current document;
title: Gets or sets the title of the current document.
Look at the following example:

Copy the code
The code is as follows:




example


Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),