How do I show Popup Message everytime I go to another Sheet using Google Sheet/Apps Script?

I have 3 sheets in a workbook - Sheet1, Sheet2, and Sheet3, every time I change to a Sheet there is a Popup message that will show up.

What I had in mind...

  function onOpen() {
      var ui = SpreadsheetApp.getUi();
      ui.alert('This is my pop up message!');
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum