CSmith1128 Posted May 6, 2007 Share Posted May 6, 2007 Hello. I need some help with popup messages..I want to have a delete option where a user can delete a comment they posted on my site.I want to have a link that displays a confirmation box to make sure they really want to delete it first, and if they do, i want to go to another page.So when the user clicks "Yes", I want it to take them to "delete.php" or a similar page.When the user clicks "No", I want the page to do nothing.I know how to make the confimartion box, but I don't know how to make it go to another page when they click "Yes"could someone help?ThanksChris Link to comment Share on other sites More sharing options...
scott100 Posted May 6, 2007 Share Posted May 6, 2007 Hi Chris, all you need to do is put the confim in a conditional, then use a window.location. if (confirm("Do you really wan't to delete?")) { window.location="http://www.google.com"; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.