my $code = < var newwin = window.open('output.html' , 'Windowname', 'location=0,menubar=0,resizable=1,height=350,width=500,innerHeight=350,innerWidth=500,scrollbars=1,toolbar=0,titlebar=0'); newwin.focus(); EOF ; print $code;