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.aspxI want to block a JS popup from my WebView control. Currently, the code does not seem to hit newwindow event. Please advise Tej
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|