This function works fine in all mozilla based browsers, but in IE6
the confirm shows up, but it doesn't change location, is there a way to
tweak this for IE and Mozilla use?
Thanks,
- NN
<code>
I am using this function:
function delWarn(name,ta ble,col_id,id,c onf_id) {
var myArray = [table, col_id, id, conf_id];
var msg = "Do you really want to delete record " + name + " ? ";
if (confirm(msg))
location.replac e("$page?bk=cus t&view=del&data =" + myArray);
}
Here is the php generated link I am using: ( my email client wraps it )
<a href=\"javascri pt:;\" onclick=\"delWa rn('This
Record','$table ','$del_col_nam e','$row_id','$ id');\">Delete</a>
the confirm shows up, but it doesn't change location, is there a way to
tweak this for IE and Mozilla use?
Thanks,
- NN
<code>
I am using this function:
function delWarn(name,ta ble,col_id,id,c onf_id) {
var myArray = [table, col_id, id, conf_id];
var msg = "Do you really want to delete record " + name + " ? ";
if (confirm(msg))
location.replac e("$page?bk=cus t&view=del&data =" + myArray);
}
Here is the php generated link I am using: ( my email client wraps it )
<a href=\"javascri pt:;\" onclick=\"delWa rn('This
Record','$table ','$del_col_nam e','$row_id','$ id');\">Delete</a>
Comment