Web Hosting Talk







View Full Version : Best Javascript Dropdowns?


JedKent
07-18-2002, 05:44 PM
Err, like the topic says, what's the best type of javascript dropdown to use? I have seen a lot, but don't know which to use.

Help? Or, where can I get 'em?

O_o

filburt1
07-18-2002, 07:35 PM
<script type="text/javascript">
<!--
function go(s)
{
window.location = s;
}
// -->
</script>

<select name="..." onChange="go(this.value)">
.
.
.
</select>

Gem Hexen
07-18-2002, 09:13 PM
I think he wants more than just a form box, he means drop downs like at microsoft.com

JedKent
07-19-2002, 12:41 AM
No, I wasn't talking about DHTML (that's what microsoft uses).

Anyhow, filburt1, I guess I'll go ahead and try that out. Thanks! However, I thought that you had to add something to your header in order for it to work right? Maybe not though...

JedKent
07-19-2002, 05:03 AM
Ok, I got it working, but one question... do I put the following part in the <head> tag, or right before the rest of it...?

<script type="text/javascript">
<!--
function go(s)
{
window.location = s;
}
// -->
</script>

? Thanks... /me hopes.

JedKent
07-19-2002, 06:32 AM
*bump* :o

filburt1
07-19-2002, 07:36 AM
Yeah, put it in the <head> tag, although it shouldn't matter.

JedKent
07-19-2002, 01:05 PM
You're right, both ways work - it's just that I was wanting to do it the most proper way.

Anyhow, thanks a lot for helping me out... - appreciate it.

:)

filburt1
07-19-2002, 01:33 PM
Use my forum in the future ;)