Home > Web Front-end > JS Tutorial > A new way to pop up a new page in js to avoid being intercepted by browsers and ads_javascript skills

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:50:25
Original
1676 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
Latest Issues
Where is js written?
From 1970-01-01 08:00:00
0
0
0
js addClass not working
From 1970-01-01 08:00:00
0
0
0
js file code not found
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template