Although the following test is conducted in one page, you can use this API to listen to events happens in other pages