How to capture the “JavaScript SetCookie event” in a WebBrowser?

陌路散爱 提交于 2019-12-07 07:43:08

问题


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.



来源:https://stackoverflow.com/questions/3664613/how-to-capture-the-javascript-setcookie-event-in-a-webbrowser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!