Antwise community forums
Cancel opening of new tab/window - Printable Version

+- Antwise community forums (https://forums.antwise.com)
+-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11)
+--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12)
+--- Thread: Cancel opening of new tab/window (/showthread.php?tid=126)



Cancel opening of new tab/window - maddire - 2022-07-05

Is there a way to prevent a new window from opening and to just navigate to the page instead within the current browser window?

I can catch the trigger by using the Args.URI to get the destination but I can't work out how to then kill or cancel the new window from loading.

Private Sub EdgeWebBrowser_OnNewWindowRequested(ByVal Args As AntViewAx.IAntViewNewWindowRequestedEventArgs)

EdgeWebBrowser.Navigate Args.URI

End Sub


Thanks


RE: Cancel opening of new tab/window - wila - 2022-07-05

Hi,

Yes, the solution for that is here:
https://forums.antwise.com/showthread.php?tid=109&pid=323#pid323

--
Wil


RE: Cancel opening of new tab/window - maddire - 2022-07-05

Thanks. I should have checked the forum first Smile