将IHTMLDocument2的内容复制到新实例 [英] Copying the contents of IHTMLDocument2 to a new instance

查看:125
本文介绍了将IHTMLDocument2的内容复制到新实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我试图将一个IHTMLDocument2的完整内容复制到另一个IHTMLDocument2的新实例化副本。在伪代码中,它将是这样的:



Hello everyone. I am trying to copy the complete content of one IHTMLDocument2 to another new instantiated copy of IHTMLDocument2. In pseudo code, it would be something like this:

IHTMLDocument2 newDoc.content() = oldDoc.content()





我之所以愿意这样做,只是每当在浏览器中加载新网页时,我想创建该页面的副本,在屏幕上向用户显示原始副本时处理该页面。这样,用户在显示在屏幕上之前不必等待处理文档。



任何想法都会得到真正的体会。在此先感谢!



The reason why I''d like to do so, is simply that whenever a new webpage is loaded in the browser, i would like to create a copy of that page, process it while the original copy is being displayed to the user on screen. This way, the user wouldn''t have to wait for the document to be processed before being displayed on screen.

Any thoughts would be truly appreciated. Thanks in advance!

推荐答案

(没有尝试过)我想你可以用innerHTML属性做到这一点。
(haven''t tried it) I think you might be able to do this with innerHTML property.


这篇关于将IHTMLDocument2的内容复制到新实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆