google apps script onload code example Example: create a function that uses onOpen var onFrameOpen = function() { $svs('framename','Open Frame'); }