c# - Capturing javascript popups -
in webbrowser, there anyway capture stupid popups generated javascript?
the ones "success" or watever , have "ok" button.
i tried webbrowser "newwindow" event, not being fired.
any tips?
you redefine global javascript alert function this:
function alert() {}
then nothing happen when other code calls alert.
update:
to add following page code:
<script> function alert() {} </script>
if injecting pages may wish @ greasemonkey , add script using that:
https://addons.mozilla.org/en-us/firefox/addon/greasemonkey/
there similar addons browsers.
Comments
Post a Comment