Code:
function writeframe(argdir, argname)
{
document.write('<html>');
document.write('<head>');
document.write('</head>');
document.write('<frameset cols="18%,82%" framespacing="0" frameborder="0" >');
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>');
}
the user chose an item in a scroll-down menu, a new page (frame) is opening. This works. Afterwards I integrate this page in my index.htm page (a frame). When I make now a choise in this scroll-down menu he opens a new page but not in a new window, but within the part of the frame where my scroll-down menu page is in. How can I activate the code above in a new window and not longer within a part of the frame ? I tried window.open() but this works with a link (a href..)