music_lp90 Posted October 10, 2007 Share Posted October 10, 2007 Hi, is there a way to create a link that will go back to whatever page the user was on before they visited the current page?I'm creating a form and in the case that they missed filling a field in I want to provide a link for them to go back a page instead of saying "Please hit back on your browser to fill in the rest of the information." I want to do this so that they don't lose what they typed in.I know forms can be validated by javascript, but I don't know much javascript yet, so I'm validating it with php and I need to have this working as soon as possible, so I don't have time to figure out the javascript for it. Thanks for your help! Link to comment Share on other sites More sharing options...
aspnetguy Posted October 10, 2007 Share Posted October 10, 2007 <a href="javascript: history.go(-1);">go back</a> or <a href="javascript: history.back();">go back</a> Link to comment Share on other sites More sharing options...
music_lp90 Posted October 10, 2007 Author Share Posted October 10, 2007 Thanks! works great. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.