I am learning HTML and javascript and cannot quite get something to work:
I have a new page being created and want to display an image on it:
thepage= window.open('', '', 'height=700,width=800,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');
The page displays when it gains focus but I when I try to put an image on there I simply get, at the most, the red and white x box.
I have tried:
thepage.document.write(<img src=".\Images\theImage.jpg")
But this does not work even though the image code is identical to the main page where it does work and various other things.
Please note I do not want a popup which only shows an image, rather a fresh new page which contains the same image as the main page (at least to start with).
I have got to the point where I cannot see the wood for the trees here even though I know that this must be straightforward!!