Code: Select all
echo "<a href='display.php?pid=".$row["productID"]."' target='_blank' onClick='if (window.open){window.open('display.php', 'new', 'scrollbars=no,width=100,height=100,resizable=yes');return false; }'>";
echo "<img src=".$row["productIMG"]." width='70' height='70'>";
echo "</a>";But new window's SIZE is much bigger than width='100' height='100'.
The size should be width=100,height=100 in this case.
*when i use this code without PHP, it works perfectly.
If u know what is wrong, plese teach me.
and also, when i use javascript in PHP code, in general what should i be carefull?
Thanks in Advance.