|
Post by Nightwalker on Jun 21, 2010 14:59:48 GMT -6
This code makes a button on the forum that says Delete this forum. If they click to delete it the code redirects them to another site.
<script type="text/javascript"> // Delete Forum Trick by Nightwalker // Do not repost or clame for your own // This header MUST stay intact function show_confirm() { var r=confirm("Are you sure you want to do this?"); // question about deleting the forum
if (r==true) { window.location = "http://www.proboards.com"; //url you go to if you delete the forum alert("The forum has been deleted"); //pops up if you delete the board } else { alert("Forum has been deleted"); window.location = "http://www.proboards.com"; } } </script> <input type="button" onclick="show_confirm()" value="Delete this forum" />
|
|