Click to See Complete Forum and Search --> : More JavaScript Problems
The Hobo
Sep 19th, 2002, 06:35 PM
Why won't this work right?:
<script type="text/javascript">
function delete() {
c = confirm("Are you sure you want to delete the selected messages?");
event.returnValue = c;
}
</script>
??
cpradio
Sep 19th, 2002, 09:36 PM
<a href="#" onClick="if(confirm('Are you sure you want to delete these message(s)?')) return true; else return false;">Delete</a>
The Hobo
Sep 19th, 2002, 10:15 PM
Thanks for working it out with me over AIM, Matt. :cool:
Rick Bull
Sep 20th, 2002, 04:43 AM
You don't actually need the if then thing in there, you can just do it like this:
<a href="#" onClick="return confirm('Are you sure you want to delete these message(s)?');">Delete</a>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.