Does anyone know a way to resize the new window when using the ...
header(location: ""); function?
Thanks Virgil
Moderator: General Moderators
Code: Select all
<? if ($x=="y"){?>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
window.open('http://www.whatever.com', '_blank', 'height=320,innerHeight=320,width=400,innerWidth=400,scrollbars,resizable');
} //--> </SCRIPT>
<?}?>Code: Select all
<a href='www.whatever.com' onclick="window.open('http://www.whatever.com', '_blank', 'height=320,innerHeight=320,width=400,innerWidth=400,scrollbars,resizable')"> link </a>Code: Select all
<input type="button" onclick="window.open('http://www.whatever.com', '_blank', 'height=320,innerHeight=320,width=400,innerWidth=400,scrollbars,resizable')" value="Button" name="whatever" >