Home  >  Article  >  Web Front-end  >  Is base a JavaScript reserved word?

Is base a JavaScript reserved word?

青灯夜游
青灯夜游Original
2022-01-26 14:02:571411browse

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!

Statement:
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