I have a native (windows) application that has an embedded web browser. Currently I’m invoking a javascript function from the backend (c++/c#). However, if javascript is disabled this fails and I’d like to provide a fallback mechanism. Is there a way to determine if javascript is disabled?
I have a native (windows) application that has an embedded web browser. Currently I’m
Share
In the IE Web Control, you can simply force JavaScript on. Please refer to the following interfaces, which your host has to implement:
Another approach would be for your HTML page to query the window.external object and call a method on it, which you implement in your host, which sets a flag to true. Not being called would mean the JavaScript was not executed.