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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -