Tomas
02-06-2003, 07:56 PM
Hello everyone,
please can someone be helpful with the following?
How to arrange the JS code below so that the pages linked from the form (that's located in a frame) would open in a different frame called "diskog" or in a new window (ie. where to insert an attribute known in HTML as "target" and how to modify it's properties)?
I like this element and I was searching thru various JS sites, but found only information about forms in general or drop-down menus with "go" button; no mention about linking into an existing frame. And unfortunately I can't recall any site that uses this navigation system now.
Any help will be appreciated.
Many thanks in advance.
Tom
<html>
<head>
<script>
function ChangeURL()
{
select=document.getElementById('select1');
if (select.selectedIndex!=0)
document.location=select.options[select.selectedIndex].value;
}
</script>
</head>
<body>
<select id=select1 onchange=ChangeURL()>
<option value=''>(choose a section)</option>
<option value=''></option>
<option value='e_diskog_s.html'>singles</option>
<option value='e_diskog_a.html'>albums</option>
</select></form>
</body>
</html>
please can someone be helpful with the following?
How to arrange the JS code below so that the pages linked from the form (that's located in a frame) would open in a different frame called "diskog" or in a new window (ie. where to insert an attribute known in HTML as "target" and how to modify it's properties)?
I like this element and I was searching thru various JS sites, but found only information about forms in general or drop-down menus with "go" button; no mention about linking into an existing frame. And unfortunately I can't recall any site that uses this navigation system now.
Any help will be appreciated.
Many thanks in advance.
Tom
<html>
<head>
<script>
function ChangeURL()
{
select=document.getElementById('select1');
if (select.selectedIndex!=0)
document.location=select.options[select.selectedIndex].value;
}
</script>
</head>
<body>
<select id=select1 onchange=ChangeURL()>
<option value=''>(choose a section)</option>
<option value=''></option>
<option value='e_diskog_s.html'>singles</option>
<option value='e_diskog_a.html'>albums</option>
</select></form>
</body>
</html>