Open this page in the API Guide

ScriptEditor.deactivate Method