Forum Moderators: open

Message Too Old, No Replies

Does this javascript stand in the way?

         

leoo24

9:05 am on May 4, 2004 (gmt 0)

10+ Year Member



i don't normally use and know nothing about javascript, so could someone tell me if this javascript dropdown list is readable or not?
<select id="gowhere" onchange="go(this)">
<option>-Select location-
<option value="page1.html">page1
<option value="page2.html">page2
<option value="page3.html">page3

Rambo Tribble

1:13 pm on May 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, this is a fragment of straight HTML, no JavaScript involved , except in the onchange attribute. It does need a closing </select> tag to be complete, however.

You can almost always discern where JavaScript is in a page because it falls between <script type="text/javascript"> and </script> tags.

The call, through the onchange event handler, doesn't appear to do much. It seems to simply direct the browser to focus on the form object it's already focused on.

encyclo

1:24 pm on May 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



onchange="go(this)"

I think you missed this bit, Rambo - it's powered by javascript.

As for the search engines (I assume that's what you mean by readable), I wouldn't count on the fact that they can follow these links, which are not standard href links. I would strongly recommend duplicating them with standard links, either in a footer or on a site map page.

Dropdown lists are a bad idea as primary navigation from a usability point of view, although they are useful as a secondary way to jump between sections of a site. Your site should be fully navigable when javascript is disabled.

leoo24

2:48 pm on May 4, 2004 (gmt 0)

10+ Year Member



thanks :)

out of doubt I did repeat the links in the footer and in the site map.

I personally don't like drop downs and resent having to use one but it's part of a regional directory with too many links.

is there any dropdown that is "spiderable" ;)