How to disable Javascript in mshtml.HTMLDocument (.NET) -


i've got code :

dim document new mshtml.htmldocument dim idoc mshtml.ihtmldocument2 = ctype(document, mshtml.ihtmldocument2) idoc.write(html) idoc.close() 

however when load html executes javascripts in doing request resources "html" code.

i want disable javascript , other popups (such certificate error).

my aim use dom mshtml document extract tags html in reliable way (instead of bunch of regexes).

or there ie/office dll can load html wihtout thinking ie related popups or active scripts?

dim document new mshtml.htmldocument dim idoc mshtml.ihtmldocument2 = ctype(document, mshtml.ihtmldocument2) 'add code idoc.designmode="on" idoc.write(html)idoc.close() 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -