Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I catch a 'F5' button press?

Status
Not open for further replies.

steijssen

Programmer
Joined
Mar 25, 2001
Messages
92
Location
BE
Hi,

I want to display an alert window when a user hits the F5 key on his keyboard. How do I achieve this?

Thanks in advance,
Stijn
 
Yes ok I've got that now, but I don't want the browser to refresh the page when I hit F5. Just display an alert window, then stop, no refresh. Is that possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top