base target="" specifies the target of the base link to open the frame

base target="" specifies the target of the base link to open the frame
<base target=_blank> changes the target frame of the basic link to a new page. If you are not very familiar with HTML, CSS and JS, it is not recommended to use this method and instead use independent control.

In fact, many tags such as <a> and <form> support the attribute target="black". It is recommended to set it separately in such tags, for example:

Copy code
The code is as follows:

<a href="xxx.htm" target="_blank">Hyperlink content</a>
<form action="xxx.htm" target="_blank">Expression content<input type="submit" value="Submit button"></form>

If this sentence is not added, the default is to refresh the current page, that is, target="_self".

Copy code
The code is as follows:

<base target=Right>

The function of this statement is to add target=Right to all <a href=...> link instructions that do not specify a target. It has nothing to do with your <select>.

For example, your original program is as follows:

Copy code
The code is as follows:

<base target=Right>
<a href=p1.html>Page 1</a>

<a href=p2.html>Page 2</a>

<a href=i1.html target=_blank>Home</a>

<a href=i2.html target=_self>Refresh</a>

Then the following code is completely equivalent:

Copy code
The code is as follows:

<a href=p1.html target=Right>First Page</a>

<a href=p2.html target=Right>Page 2</a>

<a href=i1.html target=_blank>Home</a>

<a href=i2.html target=_self>Refresh</a>

It has no effect on any other code. The above target=Right means in the frame named Right (or FRAME). If there is no window called Rigth, then open a new window and name it Right. The next time you open other pages to Right, they will be opened in this window. target=_blank means opening in a new window, target=_self means opening in the current window.

<<:  How to operate the check box in HTML page

>>:  Detailed explanation of JavaScript animation function encapsulation

Recommend

MySQL implementation of lastInfdexOf function example

Sometimes MySQL needs to use a function similar t...

Detailed explanation of JSON.parse and JSON.stringify usage

Table of contents JSON.parse JSON.parse Syntax re...

JavaScript to achieve full screen page scrolling effect

After I finished reading JavaScript DOM, I had a ...

The textarea tag cannot be resized and cannot be dragged with the mouse

The textarea tag size is immutable Copy code The c...

An article tells you how to implement Vue front-end paging and back-end paging

Table of contents 1: Front-end handwritten paging...

Definition and function of zoom:1 attribute in CSS

Today I was asked what the zoom attribute in CSS ...

Detailed explanation of the use of state in React's three major attributes

Table of contents Class Component Functional Comp...

Linux disk sequential writing and random writing methods

1. Introduction ● Random writing will cause the h...

The whole process of implementing the summary pop-up window with Vue+Element UI

Scenario: An inspection document has n inspection...

Detailed explanation of Docker Volume permission management

Volume data volume is an important concept of Doc...

React Router V6 Updates

Table of contents ReactRouterV6 Changes 1. <Sw...

Example code for converting http to https using nginx

I am writing a small program recently. Because th...

MySQL table return causes index invalidation case explanation

Introduction When the MySQL InnoDB engine queries...