image won't appear

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kathy painter

    #1

    image won't appear

    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?



    Thank you.
    Kathy



  • Martin Honnen

    #2
    Re: image won't appear



    kathy painter wrote:[color=blue]
    > 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/W...ssignment.html[/color]

    You have

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

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

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

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • Martin Honnen

      #3
      Re: image won't appear



      kathy painter wrote:[color=blue]
      > 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/W...ssignment.html[/color]

      You have

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

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

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

      --

      Martin Honnen
      http://JavaScript.FAQTs.com/

      Comment

      • kathy painter

        #4
        Re: image won't appear


        "Martin Honnen" <Martin.Honnen@ t-online.de> wrote in message
        news:3F351B46.1 050903@t-online.de...[color=blue]
        >[/color]
        Thank you Martin, it now works perfectly. I just couldn't see the forest
        through the trees. I appreciate your input greatly.

        Kathy


        Comment

        • kathy painter

          #5
          Re: image won't appear


          "Martin Honnen" <Martin.Honnen@ t-online.de> wrote in message
          news:3F351B46.1 050903@t-online.de...[color=blue]
          >[/color]
          Thank you Martin, it now works perfectly. I just couldn't see the forest
          through the trees. I appreciate your input greatly.

          Kathy


          Comment

          Working...