Solved

Only show / generate link when a button is pressed

Posted on 2014-02-11
5
239 Views
Last Modified: 2014-02-14
Hi,

I have a website with a lot of reference links. I want my visitors to be able to use and click them, but i don't want Google to see them all immediately. I was thinking of creating some sort of button with no follow or something, which creates the link(button) only when it is clicked.

Is this possible, if yes, how? I was thinking of Ajax maybe somehow?

Thanks!
0
Comment
Question by:peps03
  • 2
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39851867
If you don't want Google to follow a link, you can add rel="nofollow" to it:

<a href="somePage.php" rel="nofollow">A Link to Some Page</a>
0
 
LVL 9

Expert Comment

by:Sar1973
ID: 39852849
In JS:
<!DOCTYPE html>
<html>
<body>

<button type="button" onclick="window.location.href='Your URL'">Click Me!</button>
 
</body>
</html>

Open in new window

0
 

Author Comment

by:peps03
ID: 39853084
@Chris Stanyon, i want more than a nofollow tag

@ Sar1973 thanks for you reply.
Google won't even see this construction as a link?
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 39853097
If you don't want Google to follow your links then nofollow is the way forward. If you 'need more' can you tell me exactly what you need - your question is a little vague.
0
 

Author Closing Comment

by:peps03
ID: 39859207
Ok, i'll stick to nofollow then!
Thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now