Quantcast
Channel: User Chamilyan - Stack Overflow
Viewing all articles
Browse latest Browse all 43

Go back to previous page after a delay

$
0
0

I want to go to the previous page after a 2 second delay using jQuery. I thought maybe I could do it this way but I think 'm using this in the wrong context. Code doesn't do anything worthwhile.

function goBack() {    $(this).delay(3000, function(){      history.back();}    return false;    }

Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>