Triggering Toast under certain conditions

I have two different pages that access my embedded maps page. When Page A takes the user to the map, I would like a Toast to pop up. When Page B takes the user to the map, I do not want the Toast to pop up. Any ideas out there?

This has been solved. Thank you.