PDA

View Full Version : is it easy to make links in javascript or forms?



aquila
09-12-2007, 02:27 PM
a big hello to everyone,

i've been reeading the seo guide and it said something about making your outgoing links in javascript or in forms in order to not affect your page rank. is this easy t do ad how do you go about doing it as there were no instructions. thank you.

Chris
09-13-2007, 05:30 AM
Well, the easiest way to do it is to just use "rel="nofollow""

Doing it with javascript though would be like this...

<script language = "javascript">
document.write('<a href ='+'"http://www'+'.example.com">Example.com</a>');
</script>

You can also use a redirect script (in php or something) so you can link out like

mysite.com/scripts/out.php?id=20

and then using robots.txt deny access to the scripts directory or out.php file.

But, nofollow is the easiest.

aquila
09-13-2007, 01:10 PM
hi chris,

i have enjoyed reading your seo guide very mcuh. it has helped me learn a lot about seo since i'm a first time website owner.

regarding the javascript code you gave is this what i'm meant to do?


my original code for the link


<p><font face="Arial, Helvetica, sans-serif" size="2"><b><u><br>
</u></b> <a href="http://www.games-workshop.com" target="_blank"><b><font color="#000000">Games
Workshop</font></b></a>



replaced by the code you gave me
<p><font face="Arial, Helvetica, sans-serif" size="2"><b><u><br>
</u></b><script language = "javascript">
document.write('<a href ='+'"http://www'+'.games-workshop.com">games-workshop.com</a>');
</script>

have i done this right? i have included urls of page in question http://myminiaturepainting.com/links.html for clarification purposes. i suppose i could always get rid of all these links since i don't even get any incoming links from them but i thought it might be handy for my readers to get easily to places or things i talk. thank you for your help.

Chris
09-14-2007, 06:30 AM
Yes, but thats the hard way, I'd recommend just using rel = nofollow

<a href = "example.com" rel = "nofollow">link</a>

aquila
09-14-2007, 02:47 PM
yes the no follow is definitely easier but it's nice to know a little of the hard way as well. thank you again for your help.

cooluks
09-25-2007, 01:38 PM
Yes, but thats the hard way, I'd recommend just using rel = nofollow

<a href = "example.com" rel = "nofollow">link</a>

Agree using this nofollow to strategically direct the flow of links...:yawnb: