I am creating a recipe cookbook program. On the main page, I have a top frame (named "nav") and bottom frame (named "recipe_layout"). There is a listbox in the BOTTOM frame containing the recipe names, and a "View Recipe" button in the TOP frame. The user would select a recipe and then click the button to view the recipe in the bottom frame. I believe that I need to insert the code to make this work with the button (?), and I think my problem is that I'm not accessing the bottom frame correctly:
Wow! I am extremely appreciative - I struggled with this for hours yesterday.... I'm really trying to learn this, so could you explain to me why you don't need .options[selectedIndex]? Also, I can understand why I have to repeat "recipe_layout" in the location.href, but why repeat "parent", since I thought that would point to the top frame, not the bottom frame?
That would have been: recipe_form.name_dropdown.options[recipe_form.name_dropdown.selectedIndex].value
which is the same as recipe_layout.recipe_form.name_dropdown.value
When referencing the text of an option you can only use recipe_form.name_dropdown.options[recipe_form.name_dropdown.selectedIndex].text
parent refers to the frameset document
At least 98% of internet users' DNA is identical to that of chimpanzees