I have tried many different ways to accomplish this and have not been able to get it to work. I would like to have a simple combo box that contains logical names and values that allow navigation of a website. I got it to work with window.open in a function, but I would rather have the option selected redirect to the same window and not a new one when the user clicks a submit button.
<script language="Javascript">
function selectBrowseTo(form) {
for (var i = 0; i < form.catTitle.options.length; i++) {
if (form.catTitle.options.selected) {
//alert("You have selected " + form.catTitle.options.value);
window.open('.selected,'_top');
}
}
}
</script>
<form method="post" name="rentalform">
<select name="catTitle" class="Pulldown">
<option value="Select One">Select one</option>
<option value="aboutus.htm">About Us</option>
<option value="home.htm">Home</option>
<option value="links.htm">Links</option>
</select>
<input type="submit" onclick="selectBrowseTo(this.form)">
</form>
thanks in advance for the help
Brian Kelleher
<script language="Javascript">
function selectBrowseTo(form) {
for (var i = 0; i < form.catTitle.options.length; i++) {
if (form.catTitle.options.selected) {
//alert("You have selected " + form.catTitle.options.value);
window.open('.selected,'_top');
}
}
}
</script>
<form method="post" name="rentalform">
<select name="catTitle" class="Pulldown">
<option value="Select One">Select one</option>
<option value="aboutus.htm">About Us</option>
<option value="home.htm">Home</option>
<option value="links.htm">Links</option>
</select>
<input type="submit" onclick="selectBrowseTo(this.form)">
</form>
thanks in advance for the help
Brian Kelleher