Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

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
 
Old November 19th, 2004, 04:29 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default did you know???

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...
[]==[];:;:;:;:;:>

N!ck_the_Greek
 
Old November 19th, 2004, 06:01 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Somethig like this:
Code:
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


--

Joe (Microsoft MVP - XML)









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.