Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
<script>
function del(delUrl) {
var r=confirm("Are you sure you want to delete?");
if (r==true)
{
alert("Deleted record!");
document.location = delUrl;
}
else
{
alert("Delete cancel!");
}
}
</script>
<a href='delete.php?id=$sysid' class='view' onClick='del()'>
<img src='image/vie.png' border='0'>
</a>
can someone tell where im wrong to this javascript...
this code pass the id=$sysid to the delete.php but before to pass i make dialogbox yes and no.
but this code alway sent me to the next page. help plsssss