Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create an invisible link? 1

Status
Not open for further replies.

krikke

Programmer
May 1, 2003
7
NL
I want to create an invisible link. For example, if you click on a letter of the text on my website, you go to another page, but you don't see that the letter is a link.
So only the people who I tell to click on that letter, now that it is a link to another page.
How do I do that?
Thanks.
 
On the onmouseover event, tell the cursor to stay at its default setting.

Obviously you will need to create a css style to stop it looking like a link.

try this

<a href=&quot; onmouseover=&quot;javascript:this.style.cursor='default'&quot;>test</a>

hope this helps

simon
 
Something like:
Code:
One of the<a href=&quot;[URL unfurl="true"]http://www.google.com&quot;[/URL] style=&quot;text-decoration: none; color: black; cursor: text;&quot;>s</a>e letters is a link.
By inspecting the code however, people can still see which letter is the link.
 
You could also find the link by using the [tab] key to tab through all the links on a page, Mozilla (amongst others) has a facility to list all links on a page, and of course search engine spiders will find and follow the link (though you can ask them not to with a robots.txt file).

All-in-all a &quot;hidden&quot; link like this will keep casual visitors out, but shouldn't be relied on for real security.

-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top