Welcome Guest Search | Active Topics | Sign In | Register

How to block all popups from EO Web browsers (WPF)? Options
Tej
Posted: Wednesday, June 23, 2021 3:08:54 PM
Rank: Newbie
Groups: Member

Joined: 6/23/2021
Posts: 4
Hi,
The following article does not work for me:
https://www.essentialobjects.com/forum/postst9846_EOWebBrowser-block-all-popups-prevent-redirect-to-another-page.aspx

I want to block a JS popup from my WebView control.
Currently, the code does not seem to hit newwindow event.

Please advise
Tej
eo_support
Posted: Wednesday, June 23, 2021 3:13:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

NewWindow event is associated to window.open or target attribute of a link element. If NewWindow event is not hit, then ithe "popup" is not truely a popup. It could be a dynamically created DHTML element (such as a DIV element) inside the page. Technically there is no different between this and other dynamic loading scenario such as dynamically load a picture. There is no way for you to block such "popup" beside analyzing and modifying the JavaScript code in the page.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.