Menu

Jquery Back Button – Take You To The Previous Page

Jquery By Jul 15, 2013 No Comments

Jquery Back Button

Jquery Back Button


Jquery back button will work same as the browser back button. It will take you to the last web page. I know we have button for it but we can give it a try and see how we can do it through the Jquery. Suppose we have a button and we will click over it to go back.

<input type="button" id="mybutton">

$(document).ready({
$('#mybutton').click(function(){
parent.history.back();
return false;
});
})

You can use anything to click. You can use <a>,<p> etc. Just remember to call this function on their respective events.

Thank You Happy Coding.


Author

Hello i am Vivek Moyal PHP developer and writes tutorials for students and beginners. Love to explore new cities

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *