It seems to work if you put the javascript at the bottom of the page instead of in the head section. I guess the form has to load before the script for it to work.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>dropdown test</title>
</head>
<body>
<form name="dynamiccombo">
<select name="stage2" size="1">
<option value="#">This is a Place Holder</option>
<option value="#">This is a Place Holder</option>
<option selected="selected" value="#">This is a Place Holder</option>
</select>
<input name="test" value="Go!" onClick="gothere()" type="button">
</form>
<!--SET up your links, and pass in the name of the group (ie: combo1) you wish to display for the link in question-->
<a href="javascript:populate(combo1)">Webmaster sites</a> | <a href="javascript:populate(combo2)">News sites</a> | <a href="javascript:populate(combo3)">Entertainment</a>
<p align="center">This free script provided by<br>
<a href="http://javascriptkit.com/">JavaScript
Kit</a></p>
<script type="text/javascript" src="drop.js"></script>
</body>
</html>
Bookmarks