According to DJF's comment at bottom, please don't do this. Just add the event listener to fullscreen button.