JavaScript
Article
By Sam Deering

jQuery Back Button (go to previous page)

By Sam Deering

jQuery/JavaScript code snippet to simulate a back button based on the users last web page.

--ADVERTISEMENT--

$(document).ready(function(){
	$('a.back').click(function(){
		parent.history.back();
		return false;
	});
});
Recommended
Sponsors
The most important and interesting stories in tech. Straight to your inbox, daily. Get Versioning.
Login or Create Account to Comment
Login Create Account