Home >Web Front-end >JS Tutorial >Alternative pop-up window, skip all interception tools_Typical special effects

Alternative pop-up window, skip all interception tools_Typical special effects

WBOY
WBOYOriginal
2016-05-16 19:19:341091browse

Generally, the biggest problem with popping up a new window directly using the
window.open method is that it is intercepted by some browsers or tools. This problem is difficult to solve.
The last time I suddenly thought about it was when the user clicked a connection and a new window popped up. If you can’t intercept it, why not use JS to simulate this click event, so try it right away.
It sure works, haha, the source code of the following implementation method:


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