--- title: "Enable Javascript in Engagements Editor" slug: "enable-javascript-in-engagements-editor" updated: 2026-11-23T12:30:38Z published: 2026-11-23T12:30:38Z canonical: "support.gainsight.com/enable-javascript-in-engagements-editor" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Enable Javascript in Engagements Editor ## Overview This article explains how to enable the JavaScript in the Engagement Editor. To build robust and secure engagements, Gainsight PX does not recommend the use of JavaScript to design the engagements. However, In the **Editor**, you can use **Code View** to call JavaScript functions if necessary. ## Enable Javascript To enable scripting in **Code View:** 1. From the left navigation pane, click the Settings icon*.* 2. Navigate to **Administration > Security > Engagements.** The *Engagement security* page appears. 3. Enable the **Allow Javascript in Engagements Editor** toggle button. ![Enable javascript.jpg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Enable_javascript.jpg?sv=2026-02-06&spr=https&st=2026-11-24T17%3A22%3A52Z&se=2026-11-24T18%3A22%3A52Z&sr=b&sp=r&sig=xAbGLdKG3ZXhh9Zv4GlAi%2FWuSiXts%2FMsLGkAQY0gekE%3D) The following functions can be called after enabling the **Allow JavaScript in Engagements Editor** toggle button. "onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrop","onscroll","oncanplay","oncanplaythrough","oncuechange","ondurationchange","Onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle"