Click to See Complete Forum and Search --> : mouseover link opening in new window


andykee
07-01-2003, 02:49 PM
Why is this code causing the link to be opened in a new window? I would like it to open a new page in the same window.

<script language="JavaScript">
image0 = new Image();
image0.src = "scooters_on.bmp";
</script>

<body>
<a href="scooters/scooters.html" target="_blank" onmouseover="image0.src='scooters_on.bmp';"
onmouseout="image0.src='scooters_off.bmp';">
<img name="image0" src="scooters_off.bmp" border="0" style="position:absolute; top: 20px; left: 325px; width:108px; height:11px;"></a>
</body>

pyro
07-01-2003, 02:50 PM
Remove target="_blank" from your <a> tag.

andykee
07-01-2003, 02:57 PM
thanks!

pyro
07-01-2003, 02:58 PM
You're welcome... :)