Welcome to WebmasterWorld Guest from 23.20.137.66

Forum Moderators: martinibuster

Message Too Old, No Replies

Does Google see javascript links now?

Does Google see links including javascript now?

     
1:24 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



It looks like that Google is counting javascript links since the last Pagerank update of 1 january.

I'm currently linking using the following javascript:

<a href="javascript:window.location='http://www.domain.com'"

onMouseOver="window.status='http://www.domain.com'; return

true"onMouseOut="window.status=' ';return true"

target="_blank">Domain website</a>

But when I enter "link:www.domain.com" at google now, I see my site that is linking with the above javascript code. Before the PR-update that wasn't so.

My site that is using this javascript code is gone a few places in the results of google.

Does anybody knows if Google is counting these javascript-links now? If yes, how can I link (or what do I have to change) to be sure that Google doesn't count them as an outbound link?

Many thanks.

[edited by: martinibuster at 6:17 am (utc) on Jan. 14, 2005]
[edit reason] fixed sidescroll. [/edit]

2:27 pm on Jan 2, 2005 (gmt 0)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I know they can read links in any format, including JavaScript, Word, Excel, and plaintext.

Sometimes they'll count them as backlinks, sometimes not. But they do parse out for links in other formats besides HTML.

2:35 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



I understand. But I think there are options to link on a manner that Google doesn't see them as an outbound link. Like putting the links in an i-frame or something like that.

Can someone tell me how I have to link (or what I have to change) to be sure that Google doesn't count them as an outbound link/backlink?

2:36 pm on Jan 2, 2005 (gmt 0)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Can someone tell me how I have to link (or what I have to change) to be sure that Google doesn't count them as an outbound link/backlink?

Well, the NOFOLLOW robots meta tag will do it for all of the links on the page, but other than that, I don't know of a good way.

If you're trying to block access to a specific set of pages (say, you have printer friendly pages and are worried about dupe content), then do it with web server access mechanisms (.htaccess and the like) or in robots.txt if they're in a sensible folder structure.

3:29 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



And if I link using the following code:

<a href="javascript:extlink('http://www.domain.com);" class=ab>Domain website</a>

And putting the following code in a JS file:

<script>
function extlink(url) { window.open(url); }
</script>

That's a little bit other then the javascript code I'm currently using.

Will Google count it as an outbound link when I use the above javascript code?

3:30 pm on Jan 2, 2005 (gmt 0)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I don't know if it will count it, but it will certainly read the URL from the JavaScript.
4:14 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



Ok, thanks.

Someone told me that it would be an option to link with out.php?id=1 for example, give each link an "id" and use an meta refresh on out.php to www.domain.com for example.

Is that right? Does Google see this as an outbound link/backlink to domain.com?

[edited by: martinibuster at 6:18 am (utc) on Jan. 14, 2005]
[edit reason] fixed url [/edit]

4:31 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



mjansen,

Google sees that as a link because it *is* a link. That's what the <a href="..." means. :)

A true javascript link will use CSS and a <span> tag with no sign of an href.

4:37 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



So, Google won't index the link when I use the following code?

<span class="dynlink"

onclick="window.location='http://www.yourdomain.com'"

onmouseover="window.status='http://www.yourdomain.com';

this.style.color='red';this.style.textDecoration='underline'"

onmouseout="window.status=''; this.style.color='#0000CC';

this.style.textDecoration='underline'">Anchor Text</span>

And using the following code in my CSS file:

.dynlink {
color: #0000CC;
text-decoration: underline;
cursor: pointer;
cursor: hand;
}

Will Google not index the link then? If yes, how can I make it so

that the link opens in a new window? So the target is blank?

Many thanks.

[edited by: martinibuster at 6:19 am (utc) on Jan. 14, 2005]

5:06 pm on Jan 2, 2005 (gmt 0)

10+ Year Member



You need to change the "onlick" so that it calls a custom javascript function that will:

1) open a new window ( ie. window.open)
2) set the url ( ie. location )
3) set the focus of the newly opened window

Although there's no guarantee that Google won't follow these links sometime in the near future (or even now).

5:24 pm on Jan 2, 2005 (gmt 0)

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You should read this thread. It contains dozens of ways to mask your link.

[webmasterworld.com...]

1:26 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



@queritor

Looks great. What you mean is to put the link url's in a JS file? Do I understand you good?

Maybe you can give an example of it (or of the script if possible)?

Many thanks.

2:04 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



Here's a complete example:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hidden External Link Example</title>
<script type="text/javascript">
<!--
function _blank(url) {
var b = window.open();
b.location = url;
b.focus();
}
-->
</script>
<style type="text/css">
<!--
.external {
cursor:pointer; cursor:hand;
text-decoration: underline;
color:blue;
}
-->
</style>
</head>
<body>
<p class="external" onclick="_blank('http://external_site.com')"

onmouseover="window.status='http://external_site.com' "

onmouseout="window.status=' ' ">An External Site</p>
</body>
</html>

[edited by: martinibuster at 6:22 am (utc) on Jan. 14, 2005]
[edit reason] fixed sidescroll [/edit]

3:19 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



@queritor

Looks great, thanks!

I think it's the best if I put the following javascript code in a JS file;

<script type="text/javascript">
<!--
function _blank(url) {
var b = window.open();
b.location = url;
b.focus(); }
-->
</script>

And the CSS code in a CSS file.

Do you think Google will index this, or have you any experience with it? Or can they give a ban to sites that are using this method?

3:22 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



To clarify, I mean if Google can index the links by using this method..?
1:06 pm on Jan 12, 2005 (gmt 0)

10+ Year Member



I saw a bullet proof way online...
I can't post the link to it over here, right?
10:03 pm on Jan 12, 2005 (gmt 0)

10+ Year Member



@Trax

I think it's know problem if you post the link here in this topic...

5:54 am on Jan 14, 2005 (gmt 0)

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's possible that Google will look for any string that starts with "http://" and try to make sense out of it. I know of some robots that can and will follow a link in a
<textarea>
.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month