PDA

View Full Version : new window target


peterfc22
05-29-2003, 08:01 PM
<script language="JavaScript">
<!--
function my_win()
{
window.open('http://members5.boardhost.com/xxxx/','mywindow','width=550,height=450,left=0,top=0,screenX=0,screenY=0,toolbar=yes,location=yes,directo ries=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
}
//-->
</script>


Hi
This works fine, but I now need to open it in a frame named "mbody"
Anyone got a solution?
Peter

arnyinc
05-29-2003, 08:58 PM
Assuming mbody is a frame that is already referenced I think you can just use that as the name of the window.

<script language="JavaScript">
<!--
function my_win()
{
window.open('http://members5.boardhost.com/xxxx/ ','mbody','width=550,height=450,left=0,top=0,sc
reenX=0,screenY=0,toolbar=yes,location=yes,directo
ries=yes,status=yes,menubar=yes,scrollbars=yes,cop
yhistory=yes,resizable=yes');
}
//-->
</script>