maxat Posted July 11, 2006 Share Posted July 11, 2006 Hi 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. Link to comment https://forums.phpfreaks.com/topic/14303-on-confirm-return-to-previous-page-and-refresh/ Share on other sites More sharing options...
nogray Posted July 11, 2006 Share Posted July 11, 2006 try history.go(-2) or another number Link to comment https://forums.phpfreaks.com/topic/14303-on-confirm-return-to-previous-page-and-refresh/#findComment-56279 Share on other sites More sharing options...
maxat Posted July 11, 2006 Author Share Posted July 11, 2006 still doesn't refresh, returns with an image Link to comment https://forums.phpfreaks.com/topic/14303-on-confirm-return-to-previous-page-and-refresh/#findComment-56289 Share on other sites More sharing options...
nogray Posted July 11, 2006 Share Posted July 11, 2006 sorry, I miss understood your questionYou need to set the meta tag so the page is not saved in the browser cach[code]<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"><META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT"><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">[/code] Link to comment https://forums.phpfreaks.com/topic/14303-on-confirm-return-to-previous-page-and-refresh/#findComment-56384 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.