Hi,
I am having a problem with some javascript i am using inside html (code below). I am trying to open a new window when a link is clicked that contains a picture (pic.jpg). This works fine although when i click the link my original page gets replaced by a page that contains [object] as a line of text. How can i keep my originl window unchanged in the background while the new window opens? also i wish for my new window to fit the size of the picture it contains. At the moment as you can see from my code the window is being opened to the maximum height and width of the window, i was wondering if there was something similar to make the height and width of the window to the maximum height and width of the picture instead.
<a href="javascript:window.op
en('pic.jp
g', null, 'top='+0+', left='+0+', height='+window.screen.ava
ilHeight+'
,width='+w
indow.scre
en.availWi
dth)">View
Picture</a>
Thanks in advance, m_caust
Start Free Trial