JavaScript Linking [on hold]

Could not find a good solution on Google - Is there a way to set Internal and external links via JavaScript? Should be a simple Link like a href for html.

If I use this snippet:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <a id="link" href="http://example.com/action">link text</a> <script type="text/javascript"> $('a#link').click(function(){ /* ... action ... */ }) </script> 

What do I need to put into the function()? Is this a way to set links to external pages so Google won't follow those? Intent is that I am searching for an opportunity to set some links that Google won't be able to follow.

Replay

Category: ajax Time: 2016-07-31 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.220 (s). 12 q(s)