Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to open it in the same window?

    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

  • #2
    New Coder
    Join Date
    Jan 2003
    Location
    NC, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hmm

    <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.

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey thanks, I didn't try it yet but I did it this way:

    onMouseover="window.location=this.href"

    Works perfect

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,048
    Thanks
    0
    Thanked 251 Times in 247 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •