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
No. There is no event that is raised when document.cookie
is assigned.
来源:https://stackoverflow.com/questions/3664613/how-to-capture-the-javascript-setcookie-event-in-a-webbrowser