RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Javascript functions problem

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  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:28 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC