View Single Post
  #2 (permalink)  
Old Jul 18th, 2007, 19:06
spinal007's Avatar
spinal007 spinal007 is offline
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,650
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: problem with main page when opening new window

That's because you left out the href="" attribute, so the links points to the top of the current page.

Add the code in red to your link and the browser won't actually follow the link.

<a href="" onClick="window.open('newpage.html','mywindow','wi dth=400,height=200'); return false;" onmouseover="MM_swapImage('Image1','','mypic.gif', 1)" onmouseout="MM_swapImgRestore()"><img src="mypic2.gif" name="Image1" width="56" height="27" border="0" id="Image1" /></a>
Reply With Quote