Not very familiar with Javascript but I have this bit of code for re-directing a page based on drop down menu.
Works great, except I want to somehow add "?shipTo=" in front of the URL.Code:<script> function gotosite() { var URL = document.gotoform.shipTo.options[document.gotoform.shipTo.selectedIndex].value; window.location.href = URL; } </script>
So.. something like?
Idk Javascript syntax!Code:<script> function gotosite() { var URL = document.gotoform.shipTo.options[document.gotoform.shipTo.selectedIndex].value; window.location.href ='?shipTo='.URL; } </script>


Reply With Quote

Bookmarks