如何在其他浏览器中弹出广告 [英] how to popup ads in another browser

查看:90
本文介绍了如何在其他浏览器中弹出广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个浏览器。一个是Chrome和另一个IE。 Chrome是我的Win7中的默认浏览器。我有时会使用IE访问某些网站,但会在我的Chrome中弹出广告。这是怎么发生的?我只想阻止这些烦人的广告。在此先感谢。

I''ve got 2 browsers. One is Chrome and the other IE. Chrome is the default browser in my Win7. There are times when I visit some sites using IE but they popup ads in my Chrome. How does that happen? I just wanna block these annoying ads. Thanks in advance.

推荐答案

这是因为当使用 window.open 方法调用弹出窗口时,是否它将在新窗口中打开相同的浏览器版本完全依赖于 window.open 方法中的第二个参数。这是弹出的子窗口的引用名称。如果此参数设置为''_ blank'',它将打开一个与其开启者无关的新窗口(在这种情况下不会保持父子关系)。



当打开新窗口弹出窗口时,操作系统实际确定默认浏览器,并将要打开的URL重定向到该浏览器。



由于这可能会在不同的浏览器中弹出窗口。



(可以有其他选项打开这个弹出窗口。其中一个是使用隐藏的锚标签,其属性已定义as target =''_ blank''以及一些调用这些锚标签的onclick事件的JavaScript代码)



希望这可以帮助你...



问候,

Niral Soni
It is because when the popups are invoked using the window.open method, whether it will open in new window of the same browser version is totally dependent on the second parameter in the window.open method. Which is the reference name of the child window getting popped up. If this parameter is set as ''_blank'', it will open a new window having no relation with its opener (no parent-child relationship will be maintained in this case).

When a new window popup is opened, the operating system actually determines the default browser, and redirects the url to be opened into that browser.

Because of this you may get popups in different browser.

(There can be other options of opening this popup windows. Of which, one is using the hidden anchor tags having attribute defined as target=''_blank'' and some JavaScript code calling the onclick event of these anchor tags)

Hope this may help you out...

Regards,
Niral Soni


这篇关于如何在其他浏览器中弹出广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆