es131245 Posted August 7, 2009 Report 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 Report 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 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now