How to change the default JavaScript alerts from the browser to make it better? I've read how to change the style of alert box , but it's based on the click of a button .. I mean the alert which is the default browser without having to click the button. here's an example:
<?php
include 'libraries/config.php';
$id = $_GET['id'];
$cart_id = $_GET['cart_id'];
$myqry=mysqli_query($conn,"DELETE FROM cart_order_detail WHERE id='$id'");
if ($myqry)
{
echo "<script language='javascript'>alert('Are you sure want delete this item ?');document.location='order.php';</script>";
}
?>
can possible ?