SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: join or concat a new path
-
Dec 2, 2003, 15:19 #1
join or concat a new path
I would like to go to a url based on what the user selects from three seperate pull down menus.
Example user selects a product. Then selects a month and Selects a year.
month and year would join together Then create a path
<a href="product/month_year/DEFAULT.HTM">
I this possible with javascript.Last edited by norfeem; Dec 2, 2003 at 15:21. Reason: can't read the yellow on top of blue
-
Dec 2, 2003, 17:00 #2
- Join Date
- Jul 2002
- Location
- Dallas, TX
- Posts
- 2,900
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yes. Here's a generic example
Code:var f = document.forms['formName']; var product = f.product.options[f.product.selectedIndex].value; var year = f.year.options[f.year.selectedIndex].value; var month = f.month.options[f.month.selectedIndex].value; top.location.href = product + "/" + month + "_" + year + "/DEFAULT.HTM";
-
Dec 3, 2003, 11:58 #3
Thank you its working flawlessly
Bookmarks