You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
hi all...
know somebody how i open a window with an image inside and a button
together with JavaScript or VBscript???
i create the window with VBscript but i don't know how i use a pic...
help please...
[]==[];:;:;:;:;:>
Public Function OpenWindow()
Dim sHtml
sHtml = "<html><head><title>Child Window</title></head><body><img src=""images/beer.gif""></body></html>"
Dim oWin
Set oWin = window.open(document.location.href)
Dim iIndex
Do Until oWin.document.readyState = "complete"
For iIndex = 1 To 10000
'
Next
Loop
Dim oDoc
Set oDoc = oWin.document
oDoc.open
oDoc.write CStr(sHtml)
oDoc.close
Set OpenWindow = oWin
End Function