I have a form with an image inside and delete option. When I select delete it redirects to delete.php and confirms delete if it is successful (all in php) and there is an OK button that should redirect to previous page without deleted image. I guess it possible only in Javascript but I dont know how to do it. I tried onClick="history.back() but still returns page with deleted image.
If you have any idea how to do it, will be highly appreciated. and sorry for my bad english.
try document.location.replace('url') where url is the page that you would go to if you hit history.back(). history.back() will simply consult the browser cache (generally) and give you the results you just mentioned.
Bookmarks