The function is onOpen()automatically executed every time a table is loaded. In the future, we will disclose a common event API, but until then you can simply define your own function while it is called onOpen().
From Section 2 Tutorial
There is also a feature onEdit()that can be viewed at:
http://www.google.com/support/forum/p/apps-script/thread?tid=584a17c79e4c04d5&hl=en
It seems that handling events on the move depends on the security issues that are being developed.
user298038
source
share