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.
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. |
|||
|
|||
5 comments :
hi, how to disable it ?
Hello Suresh, Can you send me the code for online payments acceptance through either Debit card or Credit card in asp.net web application?
good morning sir, can you send some note on silverlight.
HI this sureshkumar how to disable the back button?
Note: Only a member of this blog may post a comment.