image won't appear

Discussion in 'Javascript' started by kathy painter, Aug 9, 2003.

  1. This is my first time to post to this group, so, please be kind.

    In my class, we have a project to create a new window. Mine works in IE with
    an image, however, in Netscape the image will not appear. Is there someone
    who can help me, or guide me?

    http://www.kathypainter.com/iwa/js/Wk5/wk5_assignment.html

    Thank you.
    Kathy
     
    kathy painter, Aug 9, 2003
    #1
    1. Advertising

  2. kathy painter wrote:
    > This is my first time to post to this group, so, please be kind.
    >
    > In my class, we have a project to create a new window. Mine works in IE with
    > an image, however, in Netscape the image will not appear. Is there someone
    > who can help me, or guide me?
    >
    > http://www.kathypainter.com/iwa/js/Wk5/wk5_assignment.html


    You have

    function newWindow()
    {
    var newWindow=open('','ashley','height=475,width=475');
    newWindow.document.write("<img src=ashley1.jpg>");
    }

    If all you want is to open an image in the new window use
    var newWindow = window.open('ashley1.jpg', 'ashley',
    'height=475,width=475');

    If you have reason to use document.write to write HTML to the new window
    then don't forget the
    newWindow.document.close();
    after the last document.write

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Aug 9, 2003
    #2
    1. Advertising

  3. "Martin Honnen" <> wrote in message
    news:...
    >

    Thank you Martin, it now works perfectly. I just couldn't see the forest
    through the trees. I appreciate your input greatly.

    Kathy
     
    kathy painter, Aug 9, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chad
    Replies:
    4
    Views:
    8,347
  2. John Salerno

    why won't my image appear?

    John Salerno, Apr 8, 2006, in forum: HTML
    Replies:
    13
    Views:
    774
    Jim Moe
    Apr 8, 2006
  3. nn

    background won't appear

    nn, Apr 9, 2006, in forum: HTML
    Replies:
    3
    Views:
    344
  4. Dave

    Custom Control won't appear in design mode?

    Dave, Jul 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    188
  5. Replies:
    1
    Views:
    148
    Jeff Cochran
    Jul 14, 2006
Loading...

Share This Page