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?
there is 1 way to detect it.
check to see if F5 was pressed. as to detect if the actual refresh was clicked, that i'm not sure if its possible, but you can check against the key code
JS Code .keypress()