且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WebBrowser/IE-如何使用"window.onbeforeunload = null"关闭(确定要离开此页面)

更新时间:2023-12-01 20:14:10

您在这里不是在谈论VB.NET,而您真正在谈论的是JavaScript.我怀疑为了使该功能正常工作,您可能需要执行某种OnDocumentReady JavaScript函数并将其绑定到事件.

You are not talking VB.NET here,  and what you are really talking about is JavaScript. I suspect that in order to get the functionality to work, you may need to do some kind of a OnDocumentReady JavaScript function and tie it to an event.

您需要发布的论坛是ASP.NET论坛中的JavaScript论坛.

The forum you need to post to is the JavaScript forum in the ASP.NET forum.

http://forums.asp.net/

为什么不使用ASP.NET来执行此操作?为什么要使用Webbrowser控件?

Why are you not using ASP.NET to do this? Why are using the Webbrowser control?