PDA

View Full Version : linking to new window


jeff
02-08-2000, 11:16 AM
i have the following script on a page with several layers. each layer links to an external site. i want those links to open in new windows but have been unsuccessful executing this.

this script is:
<IMG SRC="gothere.jpg" WIDTH=56 HEIGHT=19 ALT="" BORDER="0" onMouseDown="MM_goToURL('parent','http://www.link.com/');return document.MM_returnValue">

i've tried changing the 'parent' to 'new' and 'blank' but both produced javascript errors.

is there a way to do this (hopefully without making any significant changes to the script which has proven to be fragile)?

thanks.

Jason
02-08-2000, 10:51 PM
Hi Jeff,

If you're just looking to open a new window on a click, then you don't need a java script at all.

This is what it looks like:

<a href="http://www.link.com" target="_blank">
<IMG SRC="gothere.jpg" WIDTH=56 HEIGHT=19 ALT="" BORDER="0">
</a>

Let me know if this is what you had in mind.

------------------
Regards,
Jason M. DesRoches
jason@123webmaster.com
ICQ #17947522