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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -