base target="" controls the link's target open frame

base target="" controls the link's target open 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 filter out duplicate data when inserting large amounts of data into MySQL

>>:  CSS3 uses transform to create a moving 2D clock

Recommend

How to Monitor Linux Memory Usage Using Bash Script

Preface There are many open source monitoring too...

How to package the uniapp project as a desktop application

Installing Electron cnpm install electron -g Inst...

How to install Android x86 in vmware virtual machine

Sometimes you just want to test an app but don’t ...

Docker image access to local elasticsearch port operation

Using the image service deployed by docker stack,...

MySQL 8.0 Window Function Introduction and Summary

Preface Before MySQL 8.0, it was quite painful to...

Example code of layim integrating right-click menu in JavaScript

Table of contents 1. Effect Demonstration 2. Impl...

React's component collaborative use implementation

Table of contents Nesting Parent-child component ...

Complete steps to use vue-router in vue3

Preface Managing routing is an essential feature ...

JS realizes the automatic playback effect of pictures

This article shares the specific code of JS to ac...

Native JavaScript to achieve skinning

The specific code for implementing skinning with ...

Two ways to completely delete users under Linux

Linux Operation Experimental environment: Centos7...

Nexus uses nginx proxy to support HTTPS protocol

background All company websites need to support t...

Detailed explanation of destructuring assignment syntax in Javascript

Preface The "destructuring assignment syntax...