You can add JavaScript and HTML code to your website to display custom page elements, such as third-party apps.
For information about inserting JavaScript in Web page headers, see Setting Page Properties.
JavaScript does not execute in the Page Designer. You must use Preview mode to execute it.