ayok Posted March 4, 2008 Share Posted March 4, 2008 Hi, I have another problem with firefox and javascript. I created a back button with javascript that will send the page back with exact page position before. I use this code: <a href='#' onClick=history.go(-1)>Back</a> It works in IE and opera, but what's the problem with firefox? thank you, ayok Link to comment https://forums.phpfreaks.com/topic/94375-back-button-in-firefox/ Share on other sites More sharing options...
CrazeD Posted March 4, 2008 Share Posted March 4, 2008 <a href="javascript:history.go(-1)">Back</a> Try that. Link to comment https://forums.phpfreaks.com/topic/94375-back-button-in-firefox/#findComment-483339 Share on other sites More sharing options...
GameYin Posted March 4, 2008 Share Posted March 4, 2008 Omg my internet was being slow so I couldn't post the response. I was originally going to post <a href="javascript:history.go(-1)">Back</a> too. Ghey!!! Link to comment https://forums.phpfreaks.com/topic/94375-back-button-in-firefox/#findComment-483349 Share on other sites More sharing options...
ayok Posted March 5, 2008 Author Share Posted March 5, 2008 Thanks guys, But.. it still doesn't work in firefox. I tried firefox's back button, it's the same. The page position goes to the top of the page. ayok Link to comment https://forums.phpfreaks.com/topic/94375-back-button-in-firefox/#findComment-483416 Share on other sites More sharing options...
ayok Posted March 5, 2008 Author Share Posted March 5, 2008 Funny, it works after i installed firefox javascript debugger. Link to comment https://forums.phpfreaks.com/topic/94375-back-button-in-firefox/#findComment-483686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.