A
avant
Unregistered / Unconfirmed
GUEST, unregistred user!
许多页面最下方又这么一个按钮:
<center>
<form>
<input type="button" value="关闭本窗口" onClick="window.close();">
</form>
</center>
如果"确定",就把显示它的WebBrowser给释放掉了,露出后面的窗体,多不专业呀!
怎么能检测到这样的事件发生?好像没有onClose事件?只有
onbeforeunload Sets or retrieves a pointer to the event handler function associated with the event.
onblur Sets or retrieves a pointer to the event handler function associated with the event.
onerror Sets or retrieves a pointer to the event handler function associated with the event. An onerror event occurs when loading the object causes an error.
onfocus Sets or retrieves a pointer to the event handler function associated with the event.
onhelp Sets or retrieves a pointer to the event handler function associated with the event.
onload Sets or retrieves a pointer to the event handler function associated with the event. The onload event occurs immediately after the browser loads the object.
onresize Sets or retrieves a pointer to the event handler function associated with the event.
onscroll Sets or retrieves a pointer to the event handler function associated with the event.
onunload Sets or retrieves a pointer to the event handler function associated with the event.
即使是这些事件,onDocumentComplete时将其制定给一个返回boolean型的函数,也出现
"尚未完成"异常,立即执行该函数,确信此时webBrowser.busy=false,DocumentComplete,是
不是方法不对?
特向WebBrowser高手请教!
<center>
<form>
<input type="button" value="关闭本窗口" onClick="window.close();">
</form>
</center>
如果"确定",就把显示它的WebBrowser给释放掉了,露出后面的窗体,多不专业呀!
怎么能检测到这样的事件发生?好像没有onClose事件?只有
onbeforeunload Sets or retrieves a pointer to the event handler function associated with the event.
onblur Sets or retrieves a pointer to the event handler function associated with the event.
onerror Sets or retrieves a pointer to the event handler function associated with the event. An onerror event occurs when loading the object causes an error.
onfocus Sets or retrieves a pointer to the event handler function associated with the event.
onhelp Sets or retrieves a pointer to the event handler function associated with the event.
onload Sets or retrieves a pointer to the event handler function associated with the event. The onload event occurs immediately after the browser loads the object.
onresize Sets or retrieves a pointer to the event handler function associated with the event.
onscroll Sets or retrieves a pointer to the event handler function associated with the event.
onunload Sets or retrieves a pointer to the event handler function associated with the event.
即使是这些事件,onDocumentComplete时将其制定给一个返回boolean型的函数,也出现
"尚未完成"异常,立即执行该函数,确信此时webBrowser.busy=false,DocumentComplete,是
不是方法不对?
特向WebBrowser高手请教!