shirvo Posted December 18, 2006 Share Posted December 18, 2006 i want a button on my site when pressed it will go back to the page before Link to comment https://forums.phpfreaks.com/topic/31050-solved-on-click/ Share on other sites More sharing options...
chiprivers Posted December 18, 2006 Share Posted December 18, 2006 This is not PHP so not the right forum, what you want is a simple bit of javascript:<a href="javascript: history.go(-1)">Back</a>P.S. sometimes a simple google search is more appropriate than posting a question in a forum! Link to comment https://forums.phpfreaks.com/topic/31050-solved-on-click/#findComment-143360 Share on other sites More sharing options...
shirvo Posted December 18, 2006 Author Share Posted December 18, 2006 <input type="button" value="Close" onclick="self.close();">it had this to close the window. but i want something like this to go back to the last page. is there anything like this that i can use Link to comment https://forums.phpfreaks.com/topic/31050-solved-on-click/#findComment-143363 Share on other sites More sharing options...
chiprivers Posted December 18, 2006 Share Posted December 18, 2006 <input tupe="button" value="Back" onclick="history.go(-1);"> Link to comment https://forums.phpfreaks.com/topic/31050-solved-on-click/#findComment-143379 Share on other sites More sharing options...
shirvo Posted December 18, 2006 Author Share Posted December 18, 2006 Thanks very much Link to comment https://forums.phpfreaks.com/topic/31050-solved-on-click/#findComment-143384 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.