更新时间:2023-10-26 21:53:34
您无法通过JavaScript禁用F5(或其他浏览器的快捷键)。
You cannot disable F5 (or other browser shortcut keys) via JavaScript.
在 web浏览器
控制 WebBrowserShortcutsEnabled
属性设置为假
要做到你想要做的事。
Setting the WebBrowserShortcutsEnabled
property of the WebBrowser
control to false
should accomplish what you're trying to do.