views:

342

answers:

2

when i navigate some website using webbrower control but it show alert box from java script page's how to disable its?

A: 

I'm not sure if it's possible, but if you can to inject some code into your control after you get those pages, you can override window.alert function, like:

<script>function window.alert(){ return false; }</script>
<script>

    alert("hi there")  // won't show up

</script>
Rubens Farias