Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: martinibuster

Message Too Old, No Replies

Value of links within drop down lists

   
3:24 am on Apr 27, 2009 (gmt 0)

5+ Year Member



Does Google see straight through code like this and treat such links as it would direct links? Or are these watered down because of the javascript?

<div id="homeQuickLinks">
<script language="javascript">

function openURL() {
if (document.frmLink.select.value!="") {
var load = window.open(document.frmLink.select.value);
}
}

</script>

<form name="frmLink">

<select name="select" onchange="javascript: openURL();">

<option value="http://ABC.com">ABC</option>
<option value="http://123.com">123</option>

</select>
</form>
</div>

6:06 pm on Apr 27, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



google has stated that it can read javascript; however, you want to facilitate the crawling of your website with links that can be seen with javascript turned off:

When creating your links, format them so they'll offer a static link as well as calling a JavaScript function. That way you'll have the Ajax functionality for JavaScript users, while non-JavaScript users can ignore the script and follow the link. For example:

<a href=”ajax.htm?foo=32” onClick=”navigate('ajax.html#foo=32'); return false”>foo 32</a>

[googlewebmastercentral.blogspot.com...]