image won't appear

M

Martin Honnen

kathy said:
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
 
K

kathy painter

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

Kathy
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top