Home > Web Front-end > Front-end Q&A > Is base a JavaScript reserved word?

Is base a JavaScript reserved word?

青灯夜游
Release: 2022-09-20 16:38:22
Original
1531 people have browsed it

base is not a JavaScript reserved word. Reserved words are a set of names (or commands) prepared for use within the JavaScript language. They currently have no specific purpose; while Base is an object in JavaScript that represents the base element of HTML and has a specific purpose.

Is base a JavaScript reserved word?

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

base is not a JavaScript reserved word.

Reserved words are a set of names (or commands) prepared for use within the JavaScript language. These names currently have no specific purpose and are reserved for JavaScript upgrades. Users are advised not to use them. Specific instructions are shown in the table.

JavaScript reserved words
          abstract           double           goto           native           static
            boolean           enum           implements           package           super
          byte           export             import           private           synchronized
          char           extends           int           protected           throws
          class           final             interface           public             transient
          const           float           long           short           volatile

#And Base is an object in JavaScript, representing the base element of HTML.

In an HTML document, a Base object is created every time appears.

Base object properties:

Properties Description
href Sets or returns the base URL for all links in the page.
id Sets or returns the id of the element.
target Sets or returns the default target frame for all links in the page.

[Related recommendations: javascript learning tutorial]

The above is the detailed content of Is base a JavaScript reserved word?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template