Click here to Skip to main content
15,904,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
Pablo Aliskevicius 2-Jan-13 2:49am    
Did you try some kind of popup blocker in IE?

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900