Click to See Complete Forum and Search --> : Can you make an invisible hyperlink?


Duke Will
08-20-2003, 04:50 PM
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.

Fang
08-20-2003, 04:57 PM
<p>d<span onclick="document.location.href='dog.html';">o</span>g</p>

Duke Will
08-20-2003, 07:24 PM
Thanks so much, works great, can't even detect it with mouse pointer.

pyro
08-20-2003, 09:17 PM
Or, you could choose the non-JavaScript way, and keep your page working for those without JS enabled:

<p>d<a href="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...