[ 本帖最后由 namelcx 于 2008-11-3 20:28 编辑 ]作者: bagwell333 时间: 2008-11-4 09:24
'在document中写内容。title属性恐怕不能写吧。
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
With IE
.left=200
.top=200
.height=500
.width=950
.menubar=1
.toolbar=1
.statusBar=1
.navigate "About:Blank"
.visible=1
End With
'wait a while until IE as finished to load
Do while IE.busy
loop
With IE.document
.Open
.WriteLn "<HTML><HEAD>"
.WriteLn "<TITLE>HELLO!</TITLE></HEAD>"
.WriteLn "<BODY>"
.WriteLn "<b>VBScript says </b> Hello world"
.WriteLn "</BODY>"
.WriteLn "</HTML>"
.Close
End With
Set IE = Nothing作者: namelcx 时间: 2008-11-4 09:33
感谢楼上提供思路,多谢了