Forum Moderators: open
Problem is, when I add new pages to my site I dont want to update EVERY drop down box on every page? Is there an easy way of doing this please.? I assume I can create a javascript file seperate file and link it to my pages so that every time I update the drop down box on the main file it automatically updates on every page, I just have no idea ow I do this or where I would need to place the javascript within the HEAD and BODY of each page so that it displays the updated version each time;
This is the code I have used to create the drop down menu;
<form name="form1" method="post">
<b>Select</b>
<select name="dd1" size="1">
<option value="http://www.url.co.uk/w.htm">W</option>
<option value="http://www.url.co.uk/x.htm">X</option>
</select>
<input type="button"
onclick=
"location =
document.form1.dd1.options
[document.form1.dd1.selectedIndex].value;"
value="GO">
</form>
and I think this goes into the body section where I want the box to appear
<p class="navtitle">Select<script language="javascript" type="text/javascript">document.write(dropdown)</script>
Thanks in advance