Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery Back Button Code | Go Back to Previous Page in jQuery

Apr 25, 2013
Introduction

Here I will explain
jQuery code snippet to back button event or go back to last visited webpage with back button option using jQuery.

Description:
  
In previous posts I explained reload iframe for every few seconds using jQuery,
change background of controls when validation fails, Change textbox background color in JavaScript, split the string, add fade in effect to page and many articles relating to code snippets in JQuery. Now I will explain jQuery code snippet to go back last visited webpage with back button option using jQuery.


To go back to last visited page or previous visited page we need to write the code like as shown below


<script type="text/javascript">
$(function() {
$('#back').click(function() {
parent.history.back();
return false;
});
});
</script>

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

5 comments :

Anonymous said...

hi, how to disable it ?

Martand Singh said...
This comment has been removed by the author.
Suneel Kumar Biyyapu said...

Hello Suresh, Can you send me the code for online payments acceptance through either Debit card or Credit card in asp.net web application?

Sradha WebCreations said...

good morning sir, can you send some note on silverlight.

Unknown said...

HI this sureshkumar how to disable the back button?

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.