Is it possible to create a event that call a function in javascript? Like the picture shows.
I use window scope to declare variables globally. : )