Solved

Only show / generate link when a button is pressed

Posted on 2014-02-11
5
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
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…

749 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