Advertisement
onejdc

BackFoward KeyPress

Oct 30th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.onkeydown=function(e){e=e||window.event,"37"==e.keyCode?document.getElementsByClassName("back")[0].click():"39"==e.keyCode&&document.getElementsByClassName.forward[0].click()};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement