Solved

Only show / generate link when a button is pressed

Posted on 2014-02-11
5
246 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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)

726 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