function func() { if(confirm("Are you OK with this?")) { this.location = " ok.php?action=ok"; } else { this.location = "ok.php?action=cancel" } "/> function func() { if(confirm("Are you OK with this?")) { this.location = " ok.php?action=ok"; } else { this.location = "ok.php?action=cancel" } ">