PDA

View Full Version : Frame to New window problem


paulj
02-13-2003, 11:26 PM
I have my index page in a frame and in one of them is my drop down window with the directory for html and jpg links. I have it loading to a new window which it does but what do I do in order for it to close once I click on a link and also the same for my other pages with drop down links so that they don't load up behind one another but close instead. I would like the drop down to refresh once it is reopened instead of staying on the last link. I'm currently using the code on my index page with the links on it (saved as --2.htm)<SCRIPT LANGUAGE="JavaScript">
<!--
function JumpToIt(list) {
var newPage = list.options[list.selectedIndex].value
if (newPage != "None")
window.open(newPage)
}
//-->
</SCRIPT>
and the current default in the drop down as <OPTION VALUE="None">Select an item ---->
I'm new at this ---be gentle
Thanks paulj