Home > Web Front-end > CSS Tutorial > Make good use of the target attribute of href_Basic Tutorial

Make good use of the target attribute of href_Basic Tutorial

WBOY
Release: 2016-05-16 12:08:50
Original
2128 people have browsed it

As we all know, the target of href has four attributes, namely: _blank, _self, _parent, _top. I won’t say much about the meaning of each of these four. You can search a lot on the Internet. What I want to say here is that by giving the target attribute A specific name sometimes has good results, such as the following piece of code


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh it before executing it]

Name the target attribute my_tar , when clicking the link, if there is no window named my_tar, create a new one, otherwise the link will be opened in the existing window named my_tar. A better application is the music station. If the target is not named, and If you open the audition music in multiple windows, the effect will be...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template