InternetExplorer.Application清除内容

时间:2012-10-05 09:25:21

标签: internet-explorer vbscript

我有以下代码在Internet Explorer中打开一个窗口并显示进度     给用户。

Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.navigate "about:blank" 
objExplorer.document.write  "Processing record 1 of 1000"

我在上面的代码之后我想清除文档的内容并写下其他内容,但是当下面的内容没有明确的时候。

objExplorer.document.Clear

有没有办法在不关闭窗口的情况下清除内容?

1 个答案:

答案 0 :(得分:0)

我发现下面的代码可以解决问题;

objExplorer.Refresh
相关问题