We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable open page in new window? I want to open a new page in self
The text was updated successfully, but these errors were encountered:
#600 (comment)
Sorry, something went wrong.
Closing as this is a duplicate. See #600
As the api has changed since the last answer has been posted, here's how to acheive that
Implement ILifeSpanHandler in a new class.
ILifeSpanHandler
With the following implementation of OnBeforePopup
OnBeforePopup
public bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) { browser.MainFrame.LoadUrl(targetUrl); newBrowser = null; return true; }
Then instantiate your implementation and set the LifeSpanHandler property of your browser with it.
LifeSpanHandler
No branches or pull requests
How to disable open page in new window? I want to open a new page in self
The text was updated successfully, but these errors were encountered: