I want to know if jquery or javascript can detect if the user has pressed the refresh button of their browser? If so can I see an example?
Well if you are looking to detect if user press F5 or ctrl+ f5 then you can use following code :)
$("body").keydown(function (e) { if (e.which == 116 || e.which == 17) { inFormOrLink = true; } });