Click to See Complete Forum and Search --> : how to direct from a form to a seperate frame?
hurd36
01-21-2003, 02:17 PM
how would I modify this code to load the url to another frame on my page?
function getNewPage() {
var locale = document.links.selectedUrl.selectedIndex;
location.href = document.links.selectedUrl.options[locale].value;
chuck
Instead of this
location.href = document.links.selectedUrl.options[locale].value;
Try this
top.framename.location.href = document.links.selectedUrl.options[locale].value;
ShrineDesigns
01-21-2003, 03:32 PM
try this:
<script language="JavaScript" type="text/JavaScript">
<!--
function getNewPage() {
var locale = document.links.selectedUrl;
if (locale.options[locale.selectedIndex].value.length > 0){
winName.location = locale.options[locale.selectedIndex].value;
}else{winName.location = winName.location + "#top";}
}
//-->
</script>
change winName to the window's name you wish to target