Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object.keys(window).forEach(key => {
- if (/^onclick/.test(key)) {
- window.addEventListener(key.slice(2), event => {
- console.log(event);
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement