Error using the write command...

I was trying the same thing, and that was why I was asking.

I have tried

$doc.write("$html")
causes an invalid function call

$doc.write = "$html"
will return
@serror = COM automation error: 80004001 [1/1]
@error = 1


One thing i noticed is that i could not get a handle to the $ie.document object unless i did a $ie.navigate first.

code:

$title = "Dropdown_Prompt"
$top = "100"
$left = "200"
$height = "165"
$width = "275"
$false = 0
$true = -1
$html = "test"


$ie = createobject("internetexplorer.application")
if $ie = 0 exit endif

$ie.addressbar = $false
$ie.menubar = $false
$ie.toolbar = $false
$ie.statusbar = $false
$ie.resizable = $false
$ie.top = $top
$ie.left = $left
$ie.height = $height
$ie.width = $width
$ie.visible = $true


debug on
while $ie.busy <>0 and @error = 0 loop

$ie.navigate("http://microsoft.com")
$doc = $ie.document

? @error
? vartype($ie)
? vartype($doc)

$doc.write = $html

? @error
? @serror


Bryce

------------------
kix.isorg.net