How to get the previous page url using jquery?
I am using the following code to get the current page location
$(document).ready(function() { var path
simple & sweet
window.location = document.referrer;