M
Mike
Hi i'm trying to the following:
a 3 frame page; parent, left en right (name of right one is "main")
i want to have a dropdownbox in the top frame to navigate to some url's.
i use the following code ( i found somewhere):
<head>
<base target="main">
<script language="JavaScript"><!--
function goThere(form){
var linkList=form.selectThis.selectedIndex
if(!linkList==""){window.location.href=form.selectThis.options[linkList].val
ue;}
}
//--></script>
</head>
<body>
<p align="left"><form name="dropMenu">
<select name="selectThis" size="1" onChange="goThere(this.form);">
<option selected value="">Whereto?
<option value="http://www.somewhere1.com/">Somehwere1</option>
<option value="http://www.somewhere2.com/">Somewhere2</option>
<option value="http://www.somewhere3.com/">Somewhere3</option>
</select></p>
</form>
</body>
The problem is that the URL is opened in the topframe. How do i get the new
URL opened in the "main" frame? I guess it has something to do with
window.location.href...
Thanx in advanced.
Mike
a 3 frame page; parent, left en right (name of right one is "main")
i want to have a dropdownbox in the top frame to navigate to some url's.
i use the following code ( i found somewhere):
<head>
<base target="main">
<script language="JavaScript"><!--
function goThere(form){
var linkList=form.selectThis.selectedIndex
if(!linkList==""){window.location.href=form.selectThis.options[linkList].val
ue;}
}
//--></script>
</head>
<body>
<p align="left"><form name="dropMenu">
<select name="selectThis" size="1" onChange="goThere(this.form);">
<option selected value="">Whereto?
<option value="http://www.somewhere1.com/">Somehwere1</option>
<option value="http://www.somewhere2.com/">Somewhere2</option>
<option value="http://www.somewhere3.com/">Somewhere3</option>
</select></p>
</form>
</body>
The problem is that the URL is opened in the topframe. How do i get the new
URL opened in the "main" frame? I guess it has something to do with
window.location.href...
Thanx in advanced.
Mike