To redirect users to new location, just drop this header() line in your PHP file. Remember that header() function must be called before any actual output is sent, otherwise you might run into error.
If you are using PHP just drop the following line on top of your script, this will detect whether the request was made using Ajax or not.
Sooner or later we all are going to fall in love with the eye catching scroll effects that jQuery has to offer. Let’s look at some of wonderful jQuery scripts & plugins that implements smooth scrolling effects.