I have developed a mobile app (in asp.net) and I am using a WinForms application with the WebBrowser control to demo it.
I my main page I am using a script to hide the address bar:
<script type="text/javascript">
window.addEventListener("load", function () {
// Set a timeout...
setTimeout(function () {
// Hide the address bar!
window.scrollTo(0, 1);
}, 0);
});
</script>
This has worked ok an several machines but this morning on a new machine I encountered an popup when the page loads:
The machine in question has IE9 installed and I have the Disable Script Debugging
setting Checked.
What is the best way to tackle this issue. Can I add some condition in the JS to not execute when running in IE?
Disable Script Debugging
is checked in IE, this setting is not propagated to the control. I managed to switch this off in the control by usingWebBrowser.ScriptErrorsSuppressed = True
– Kettle