How to capture the “JavaScript SetCookie event” in

2019-05-07 10:46发布

问题:

How to capture the "JavaScript SetCookie event" in a WebBrowser? I want to synchronize the cookie to a CookieContainer when a javascript setcookie event occurred simultaneously. such as

<script>document.cookie="testcookie"</script>

Is there an event related to this ? thanks.

Environment: .Net 2.0 WebBrowser, C#, VS2008

回答1:

No. There is no event that is raised when document.cookie is assigned.