Code:
<!--
function writeframe(argdir, argname)
{
document.open();
document.write('<html>');
document.write('<head>');
document.write('</head>');
document.write('<frameset cols="18%,82%" framespacing="0" frameborder="0" target= "_blank">');
document.write('<frame name="left" src= ' + argdir + ' target="rechts" scrolling="no" scrolbar="no">');
document.write('<frame name="rechts" scrolling="auto" src= ' + argname + ' target="rechts">');
document.write('<noframes>');
document.write('<body>');
document.write('</body>');
document.write('</noframes>');
document.write('</frameset>');
document.write('</html>');
document.close();
}
//-->
<!--
function goTo()
{
var getal = document.form1.selectned.value;
switch (getal)
{
case "W01" :
writeframe('frm/frmnldir.htm', 'frm/nl/n002.htm');
break;
case "W02" :
writeframe('frm/frmnldir.htm', 'frm/nl/n054.htm');
break;
}
document.form1.getElementById("selectned").selectedindex = 0
}
I have a drop down menu on my index page, after a selection by a user he writes a frame. When using the back button the value of the drop down stands fixed on the selected item. He need to take the default value W00, the first, the title of the drop down box. I tried getElementById, but this doesn't help.
regard,pat.