Boxerman Posted August 3, 2008 Share Posted August 3, 2008 Hi guys http://uksbestsite.com/videos/ this is my site, i was wondering after a person does a search, they click video and watch, im trying to work out how to get a back button so it goes back to the pervious page they was on i.e another video or if they came stright from teh search part, then it takes them there which the videos displaying from what they searched. hope someone can help me thanks Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/ Share on other sites More sharing options...
budimir Posted August 3, 2008 Share Posted August 3, 2008 You could do a simple back link/button with javascript. As a link: <a href="#" onClick="history.go(-1)">Back[/url] As a button: <input type=button value="Back" onClick="history.go(-1)"> Hope, that helps!!! Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/#findComment-606917 Share on other sites More sharing options...
DeanWhitehouse Posted August 3, 2008 Share Posted August 3, 2008 another way to do the link <a href="javascript:history.go(-1)">Back</a> Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/#findComment-606920 Share on other sites More sharing options...
Boxerman Posted August 3, 2008 Author Share Posted August 3, 2008 dont i need to declare any javascript or anything? for the button that is? Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/#findComment-606921 Share on other sites More sharing options...
budimir Posted August 3, 2008 Share Posted August 3, 2008 Of course you do. I only gave you a starting point. Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/#findComment-606924 Share on other sites More sharing options...
Boxerman Posted August 3, 2008 Author Share Posted August 3, 2008 how? do i need to write a javascript for all these? Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/#findComment-606926 Share on other sites More sharing options...
budimir Posted August 3, 2008 Share Posted August 3, 2008 <a href="javascript:history.go(-1)">Back</a> Here is declared! And for the button you don't need to do anything. Just copy paste the thing i wrote and that is it. Quote Link to comment https://forums.phpfreaks.com/topic/117973-solved-go-back-question/#findComment-606930 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.