Need help on this issue with WebBrowser control
-
Hello, I'm currently playing a lot with the WebBrowser control and C#. I made several programs interacting with the DOM of pages I use for testing. One of my programs traverse the DOM tree of a page, find all the images tags and click on them. Nothing really fancy ;P. My point is sometimes when I click on an image a JavaScript is called in the page and this JavaScript opens a messagebox using window.alert. The problem is that I want to execute the scripts but disable those modal messageboxes who freeze my program. My question is: how to disable the window.alert function ? Or how to intercept a window.alert call ? I explored the window object and I think you can't not change the window.alert default behaviour. Thanks, R. L.
-
Hello, I'm currently playing a lot with the WebBrowser control and C#. I made several programs interacting with the DOM of pages I use for testing. One of my programs traverse the DOM tree of a page, find all the images tags and click on them. Nothing really fancy ;P. My point is sometimes when I click on an image a JavaScript is called in the page and this JavaScript opens a messagebox using window.alert. The problem is that I want to execute the scripts but disable those modal messageboxes who freeze my program. My question is: how to disable the window.alert function ? Or how to intercept a window.alert call ? I explored the window object and I think you can't not change the window.alert default behaviour. Thanks, R. L.
-
A very crude method would be to read in the script before clicking the image and then remove, or comment out any calls to window.alert What do u think?...too much work maybe ;) ;) May the Source be with you Sonork ID 100.9997 sijinjoseph
-
Hello, I'm currently playing a lot with the WebBrowser control and C#. I made several programs interacting with the DOM of pages I use for testing. One of my programs traverse the DOM tree of a page, find all the images tags and click on them. Nothing really fancy ;P. My point is sometimes when I click on an image a JavaScript is called in the page and this JavaScript opens a messagebox using window.alert. The problem is that I want to execute the scripts but disable those modal messageboxes who freeze my program. My question is: how to disable the window.alert function ? Or how to intercept a window.alert call ? I explored the window object and I think you can't not change the window.alert default behaviour. Thanks, R. L.
html filter proxy
How low can you go ?
(MS retrof_u_ck) -
html filter proxy
How low can you go ?
(MS retrof_u_ck) -
Hello Stephane, Thanks for answering me again. Your solution sounds good but what is the technical meaning of this term ? I apologize for my lack of knowledge :-D. I'm starting to search about html filter. R. L.
html filter proxy[^] No need to tell me that's exactly what you are looking for. I know.;P
How low can you go ?
(MS retrof_u_ck) -
html filter proxy[^] No need to tell me that's exactly what you are looking for. I know.;P
How low can you go ?
(MS retrof_u_ck)