sirk-c
8/21/2015 - 9:01 PM

Smart back btn

Smart back btn

$(document).ready(function(){
    $('a.back').click(function(){
        if(document.referrer.indexOf(window.location.hostname) != -1){
            parent.history.back();
            return false;
        }
    });
});