RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 897 | Replies: 1
Join Date: Oct 2006
Posts: 7
Reputation: nickclarson is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
nickclarson nickclarson is offline Offline
Newbie Poster

Help Javascript functions problem

  #1  
Mar 18th, 2007
<script language="JavaScript">
<!--
function restore(what){
if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) {
window.location = "backups.php?action=restore&file=" + what;
}
}

function delete(what){
if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) {
window.location = "backups.php?action=restore&file=" + what;
}
}
//-->
</script>


I am calling the functions with a link:

<a href="javascript:delete('filename')">Delete</a>

Why doesn't this work?
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:35 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC