Can you make an invisible hyperlink?

admin

Administrator
Staff member
Say I have the word "dog" on a webpage. And I want to be able to tell a friend, click on the "o" in the word "dog" at the top of the page. That's a hyperlink and it'll take you to the page I want you to see. How can I do that so the hyperlink isn't apparent? I guess if someone moved their mouse over the link, the pointer would change but I guess that'd be alright. Not much odds of that and it's not anything sensitive or anything.<!--content--><p>d<span onclick="document.location.href='http://www.webdeveloper.com/forum/archive/index.php/dog.html';">o</span>g</p><!--content-->Thanks so much, works great, can't even detect it with mouse pointer.<!--content-->Or, you could choose the non-JavaScript way, and keep your page working for those without JS enabled:<br />
<br />
<p>d<a href=http://www.webdeveloper.com/forum/archive/index.php/"dog.html" style="color: black; text-decoration:none; cursor: text;" onmouseover="window.status=''; return true;">o</a>g</p>Note that JavaScript is used to set the status bar to not show the link...<!--content-->
 
Back
Top