Created
December 13, 2016 12:53
-
-
Save vsxed/d4928ae06a2361274f6e5cc1fa3ef9f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function KeyPress(e) { | |
| var evtobj = window.event? event : e; | |
| if (evtobj.keyCode == 37 && evtobj.altKey) { | |
| window.history.back() | |
| } else if (evtobj.keyCode == 39 && evtobj.altKey) { | |
| window.history.forward() | |
| }; | |
| } | |
| document.onkeydown = KeyPress; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment