es131245 Posted August 7, 2009 Share Posted August 7, 2009 Im trying to do "go back" button with<input type="button" onclick=" " value="Go back"> and i found different ways on javascriptself.back()history.back()history.go()what is the differens?? and why are some codes kicks me to:- last other site?- last other url?Im writing on php and my url is the same most or the time Link to comment Share on other sites More sharing options...
chibineku Posted August 7, 2009 Share Posted August 7, 2009 There's a go back button on the browser, or you can hit Alt+left...seems like an unnecessary obstacle Link to comment Share on other sites More sharing options...
es131245 Posted August 7, 2009 Author Share Posted August 7, 2009 i want an exact same button on js =) Link to comment Share on other sites More sharing options...
Ingolme Posted August 7, 2009 Share Posted August 7, 2009 Probably the most reliable method is history.go(-1); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.