Home > Web Front-end > JS Tutorial > body text

A new way to pop up a new page in js to avoid being intercepted by browsers and ads_javascript skills

WBOY
Release: 2016-05-16 16:50:25
Original
1195 people have browsed it

Bind the click pop-up window to a normal link, that is, a[target=_blank], and modify its href before clicking to open a new window.

Bind mousedown, modify href before mouse click execution is completed.

Bind focus to ensure that href is replaced when tab switching and enter.

Copy code The code is as follows:

ps: You can also bind onclick dom level 0 in the html code, submit the form in target mode, etc.
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