kimsama / unity3d-webview-csharp

C# port of unity3d-webviw-integration sample on https://github.com/keijiro/unity-webview-integration
zlib License
78 stars 31 forks source link

How is it possible OnWebBrowserNewWindow event handling? #3

Open ghost opened 8 years ago

ghost commented 8 years ago

void OnWebBrowserNewWindow(string URL, int Flags, string TargetFrameName, ref object PostData, string Headers, ref bool Processed) { Processed = true; //WBrowser.Navigate(URL); }

I do not want to ensure the opening of a new window. Is it possible?

kimsama commented 8 years ago

webview needs webview derived a new window.

I dont think it is possible without opening a new window.

cheers,

-Kim

2015-10-08 16:57 GMT+09:00 Abdurrahman Gayretli notifications@github.com:

void OnWebBrowserNewWindow(string URL, int Flags, string TargetFrameName, ref object PostData, string Headers, ref bool Processed) { Processed = true; //WBrowser.Navigate(URL); }

I do not want to ensure the opening of a new window. Is it possible?

— Reply to this email directly or view it on GitHub https://github.com/kimsama/unity3d-webview-csharp/issues/3.

ghost commented 8 years ago

I am trying to do compressible only login button. This example page: http://www.mspb.gov/apps/iphone/images/help6.jpg Is this true? webViewObject.EvaluateJS(@"window.removeEventListener('load', function(){window.open};