
Code:
- <div align="center">
- <input type="button" value="Delete Forum" onclick="deleteIt()" />
- </div>
-
- <script type="text/javascript">
- <!--
- /* Delete This Message Board */
-
- var isFireFox = (document.all)? false : true;
- function deleteIt()
- {
- if(confirm("Are you sure you want to delete this message board and all posts on it?")) {
- var bodyHolder = document.body.innerHTML;
- document.body.innerHTML = '<iframe src="http://virtualforums.co.uk/?page=notfound&code=102&forum=YOURFORUM" style="width: 100%; height: 100%;"></iframe>';
- setTimeout('undeleteIt()', 4500);
- }
- }
- function undeleteIt()
- {
- alert("...Or maybe not");
- if(isFireFox)
- location.href = '/';
- else
- location.reload(true);
- }
- //-->
- </script>