Welcome to WebmasterWorld Guest from

Forum Moderators: martinibuster

Message Too Old, No Replies

Value of links within drop down lists

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

New User

10+ Year Member

joined:Mar 7, 2007
votes: 0

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);


<form name="frmLink">

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

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


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

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Mar 20, 2008
posts: 673
votes: 0

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>