in reply to Re: Adding a pop up confirmation box
in thread Adding a pop up confirmation box

Hi, I added the following code to the script and its not working can you please help me correct it.
print header; print <<EOF; <script type="text/javascript"> function confirmOk() { return window.confirm("Confirm deletion?"); } </script> EOF
And
# If the form was properly submitted, save the data if ($input{"go"} eq "DELETE") { print button(-name=>'Delete', -value=>'DO you really want to delete it ?', -onClick=>"return confirmOk()"); $query = "DELETE ....
Rgds Terry