Jump to content
  • Advertisement
Sign in to follow this  
yanuart

[web] Overriding onMouseClick on link

This topic is 5124 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, this may sound silly but I was wondering if you ever had this problem before.. I want to create a link from text, which is supposed to be deadlink but by using javascript i can open a new window (with all those toolbars dead) so, this is my code :
</a href="#" onMouseClick="window.open 'new.html','newwin')">Click this<//a>
ps : the extra slashes on the a tag is not a mistake. I add it because otherwise you won't be able to see my code :). I hope u get the idea If I'm not mistaken, I've been done this before. but now it won't work and I can't find out why. Can somebody know ?? I need to use a href because it must be text and it automatically change the cursor into hand

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!