Dear Friends i am working on a project of web browser, in this browser i need a back button , i wanted that my back button maintain the value of previous pages for example google chrome back button.
can anybody tell me how to code chrome like back button

Sunny SharmaRank #223 · 11.1K reputationPosted Apr 5, 2014, 1:41 AM EDT
Use the following jQuery snippet:
$(document).ready(function(){
});
Add a "go-back" class to your input element (anchor/button) and that's it.
e.g.:
You can refer to this sample jsfiddle:
http://jsfiddle.net/sunnykumar08/K7At9/
Happy Learning :)
Cheers!!
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 5, 2014, 3:22 AM EDT
function goBack()
{
window.history.back()
}
Nitin Sharma152 reputationPosted Apr 6, 2014, 9:26 PM EDT
this piece of code not working , can u send me the full code if any i m attached me code zip file so that you can understand the requirement