JayHynes Posted September 22, 2012 Share Posted September 22, 2012 Apologies in advance if this is the incorrect forum for this question! I recently visited a tutorial website, which demonstrated how to create your own hotkeys that a user can press to various effect.The site in question had the body in a bordered div, which disappeared when a combination like "ctrl + w" was pressed, with a different combination to make it reappear etc. I can't find this website again for the life of me unfortunately, so thought perhaps someone could help me figure this out? I know things like this are achievable with Javascript, and easy to find online, but was wondering if anyone knew if this was possible just with CSS and HTML? Many thanks Link to comment Share on other sites More sharing options...
Ingolme Posted September 22, 2012 Share Posted September 22, 2012 Javascript can use the keydown, keyup and keypress events to perform actions. Read up on events: http://www.w3schools.com/js/js_events.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now