/    Sign up×
Community /Pin to ProfileBookmark

Can you make an invisible hyperlink?

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.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 20.2003 — <i>
</i>&lt;p&gt;d&lt;span onclick="document.location.href='dog.html';"&gt;o&lt;/span&gt;g&lt;/p&gt;
Copy linkTweet thisAlerts:
@Duke_WillauthorAug 21.2003 — Thanks so much, works great, can't even detect it with mouse pointer.
Copy linkTweet thisAlerts:
@pyroAug 21.2003 — Or, you could choose the non-JavaScript way, and keep your page working for those without JS enabled:

&lt;p&gt;d&lt;a href="dog.html" style="color: black; text-decoration:none; cursor: text;" onmouseover="window.status=''; return true;"&gt;o&lt;/a&gt;g&lt;/p&gt;Note that JavaScript is used to set the status bar to not show the link...
×

Success!

Help @Duke_Will spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...