I'm using cefclient on Windows 7.
I'm returning false from OnBeforeUnloadDialog() to use the default dialog implementation.
Is there any way to find out if the user has pressed "OK" or "Cancel" in the JavaScript Confirm dialog?
Many thanks
var dialogResult = MessageBox.Show(messageText, "Confirm Navigation", MessageBoxButtons.OKCancel);
if (dialogResult == DialogResult.OK)
callback.Continue(true, "OK");
else
callback.Continue(false, "Cancel");
Users browsing this forum: No registered users and 33 guests