Forums / Setup & design / window.open / Comment13218

Author Topic

Mark Kruse

Wednesday 20 August 2003 4:32:54 am

Comment13218

I tried to reproduce your problem...
But it works for me...

here is the code in my template:
($ImageList is an array I create in a PHP-file with
some images-parameters)
----------------------------------------------
<script>
function newwin(target)
{literal}
{
satellit = window.open(target,'wname', "scrollbars=yes,resizable=yes,width=470,height=500,left=50,top=50");
satellit.focus();
}
{/literal}
</script>
<a href=javascript:newwin('{$ImageList.0.path}');>hi</a>
------------------------------------------
Here is the resulting HTML-Code:
------------------------------------------
<a href=javascript:newwin('/var/storage/variations/image/p/h/p/phpOfm8ls_300x300_331561.jpg');>hi</a>
------------------------------------------
and this works fine.

HTH,

Mark Kruse