onclick prompt for delete, then refresh main page.
i'm having a slight problem and i'm hoping someone can help me.
i have a page with an iframe. once an item is deleted from the iframe, i need the main page refreshed.
its seems like i can only delete or refresh, but not do both actions together. let me further explain. The confirmation popup message does appear and the refresh is done, but the file is not deleted. if i just use confirmation() on the onclick, it deletes the selected file, but if i use (confirmation(),refreshPage()) the file isn't deleted if they click yes. but the page is refreshed.
can anyone suggest anything i could try? thanks.
if (confirm("Are you sure you want to delete the custom search?")==true)
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=del&ID=<?php echo $f['ID']; ?>" onclick="(confirmation(),reloadPage())">Delete</a>]