Set the target HTML page opens in a new window

When using <a> </a> tags hyperlink to jump, the target page opens by default in the current page.

If you want all hyperlinks in the current page when the jump page, open in a new window, you only need to set up base in the head tag tab, set the target to the base label attribute.

<base href="" target="_blank">

 

The target property:

  • _self: open the current page
  • _blank: a new window opens



Guess you like

Origin www.cnblogs.com/belongs-to-qinghua/p/10950731.html