I have the following code for a button and am wondering how to make it when click popup a window asking for confirmation before actually selling the item. its written using php/javascript but the basic idea should be the same ... thanks echo "<td align=\"center\"><a href=\"sellvehicle.php?vehicleid=" . $row['id'] . "\"><img src=\"img/sell.png\" onmouseover=\"this.src='img/sellMouseOver.png';\" onmouseout=\"this.src='img/sell.png';\" border=\"0\" /></a></td>
Hi, very basic solution could be: echo "<td align=\"center\"><a href=\"sellvehicle.php?vehicleid=" . $row['id'] . "\" onclick=\"return confirm('Are you sure??')\"><img src=\"img/sell.png\" onmouseover=\"this.src='img/sellMouseOver.png';\" onmouseout=\"this.src='img/sell.png';\" border=\"0\" /></a></td>