Home > Article > Web Front-end > Is base a JavaScript reserved word?
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.
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.
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
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 |
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!