...

View Full Version : how to open it in the same window?



pinkopanter
06-14-2003, 06:49 PM
How to make it open in the same window?

<a href="http://www.mysite.com" onmouseover="window.open(this.href)" target="_top">[ENTER]</a>

I try target=_top but... didn't work

Jimbo
06-14-2003, 06:54 PM
<a href="http://www.mysite.com" onMouseOver="window.open(this.href)" target="_self">[Enter]</a>

Use target="_self" when you want the link to open to the same window.
Hope that helps.:)

pinkopanter
06-14-2003, 07:04 PM
hey thanks, I didn't try it yet but I did it this way:

onMouseover="window.location=this.href"

Works perfect

glenngv
06-16-2003, 04:11 AM
you could have also used:

<a href="http://www.mysite.com" onMouseOver="window.open(this.href,this.target)" target="_self">[Enter]</a>

but why use onmouseover on a link to open that page?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum