[highlight="javascript"]
<script type='text/javascript'>
function confirm_delete(uname,id){
var ask_delete = confirm("Delete user " + uname + "?")
if(ask_delete){
window.location = "index.php?act=members&action=delete&id=" + id;
}
}
</script>
[/highlight]
And here's the function thingy:
confirm_delete('Jaan', '1');
But it don't work.. Maybe someone can tell me what's wrong.
My Firebug says that it's a syntax error.. but I'm not that genius to fix it :D


Sign In
Create Account

Guest_Jaan_*
Back to top











