i try this statement with click on addcart but 2 new window come with..
can any1 correct my statement ? or post the statement i should code..
cos i dont knw how to call pop up window
Moderator: General Moderators
doubt wrote:i try this statement with click on addcart but 2 new window come with..Code: Select all
echo " <A target="_blank" onClick="window.open('addtocart.php?customerid=".$customerid."&productid=".$row["productid"]."','mywindow','width=400,height=300,left=0,top=100,screenX=0,screenY=100')" href="addtocart.php?customerid=".$customerid."&productid=".$row["productid"]."">Add to cart</a><br>";
can any1 correct my statement ? or post the statement i should code..
cos i dont knw how to call pop up windowthanks
Code: Select all
echo " <A target="_blank" onClick="window.open('addtocart.php?customerid=".$customerid."&productid=".$row["productid"]."','mywindow','width=400,height=300,left=0,top=100,screenX=0,screenY=100'); return false;" href="addtocart.php?customerid=".$customerid."&productid=".$row["productid"]."">Add to cart</a><br>";