Question
How do you overwrite the refresh key with a custom javascript function? I use Prototype library, by the way.
Why
I have a video with user comments on the side. There is a button to only refresh the comments via a JS function updateComments(). During some user testing, some idiots refused to use that button to update the comments. Rather, they refreshed the entire page. This causes the video to restart, which is undesirable. I would like to overwrite the F5 key or CTRL+R to call updateComments() instead of refreshing the page.