1. Never use window.onevent, the reasons behind it, is that if using this method it will overwrite any code already defined for this event. 2. Use window.addEventListener instead as you can add one or more event listener for same one 3. To fire a rule, it needs to have event configured as direct cal...