Home >Web Front-end >HTML Tutorial >base target=''Control the target of the link to open the frame

base target=''Control the target of the link to open the frame

高洛峰
高洛峰Original
2017-02-28 13:23:091628browse

is to change the target frame of the basic link to open in a new page. Changing _blank can change the opened target frame. The following is a summary through an example. fcd54ff396408747cc063f946072cf72 changes the target frame of the basic link to open a new page. If you are not very familiar with HTML, CSS and JS, it is not recommended to use this method and control it independently.

In fact, many tags such as 3499910bf9dac5ae3c52d5ede7383485 and ff9c23ada1bcecdd1a0fb5d5a0f18437 support the target="black" attribute. It is recommended to set it separately in such tags, such as:

<a href="xxx.htm" target="_blank">超链接内容</a> 
<form action="xxx.htm" target="_blank">表达内容<input type="submit" value="提交按钮"></form>


If you do not add this sentence, the default page will be refreshed, that is, target="_self".

<base target=Right>


The function of this statement is to add target=Right to all 55fe2cea8e3a0b3a0095ebbe78b729df link instructions that do not specify a target. For your < ;select>It doesn't matter.

For example, your original program is as follows:


c2d00fd811f49a2becb661fd5d2e4132
5e3cb8c04a89418c5f85d100cf65cbc1First page5db79b134e9f6b82c0b36e0489ee08ed

3a0073740fabd2fdcfe31df28571fa37Second page5db79b134e9f6b82c0b36e0489ee08ed

742ea0808441545869fc5ec93a5c93c0Home page5db79b134e9f6b82c0b36e0489ee08ed

358f8a2bc2f3b120c0f04de1cdb57ee0Refresh5db79b134e9f6b82c0b36e0489ee08ed


##Then it is completely equivalent to the following code:

<a href=p1.html target=Right>第一页</a>

<a href=p2.html target=Right>第二页</a>

<a href=i1.html target=_blank>首页</a>

<a href=i2.html target=_self>刷新</a>


has no effect on any other code. The above target=Right means that it is in the frame named Right (or Zhen, FRAME). If there is no window named Rigth , then open a new window and name it Right. 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.

For more base target=""Control the target of the link to open the frame related articles, please pay attention to 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