如何修改webbrowser里的JS函数

其实就是对IE客户端编程,比如有些网页的JS函数的处理方式或者算法,有BUG,或者不符合本人习惯,如何改呢?

 

 替换window.showModalDialog

document.parentWindow.execScript("window.showModalDialog = function(dialog, varArgIn, varOptions){ return 你自己的函数(dialog, varArgIn, varOptions); }; ", "javascript");

 

posted @ 2021-07-07 21:31  左正  阅读(204)  评论(0编辑  收藏  举报