Normally while working with SharePoint you notice that while clicking on any link takes you to the default view or to the home page…how good it had been that you could redirect back to the previous page.
Let us first know how SharePoint does it. SharePoint adds a “Source” parameter to the querystring and uses that to return back to the previous page.
So how do we do that??
There are lot of ways to do this, why not use us the ways sharepoint does it.. (the standard way as they say)
Call this function “onclick” of your hyperlink and it will automatically append previous page as source parameter