Oracle CRM On Demand JavaScript API Developer's Guide > Getting Started with the JavaScript API >

Managing HTML Head Additions


When you add custom HTML head additions, you specify the appropriate code in <script> elements to be included in the HTML <head> element of your pages. The <script> elements can contain your custom JavaScript code and can also reference JavaScript files uploaded through client-side extensions or external JavaScript files. HTML head additions apply to all pages in Oracle CRM On Demand. There is a limit of 50,000 characters to the code that you enter as HTML head additions.

On the Edit Custom HTML Head Tag page, a Preview button enables you to validate any changes that you have made. Depending on your browser settings, errors might be displayed if badly formed HTML or JavaScript is added.

You can disable the custom HTML head additions by appending disableCustomJS=Y as a parameter to the URL for a page. If you navigate away from the page by clicking another link, then the URL parameter is not retained. You must specify the URL parameter each time that you require it. The parameter is used only when the current user's role includes the Upload Client Side Extensions and Manage Custom HTML Head Tag privilege.

NOTE:  Any custom code is the responsibility of the person or persons who created the code. Oracle Customer Care does not support custom code or the contents of linked-in code. When adding custom code, keep in mind that Oracle supports only calls to published APIs for different versions of Oracle CRM On Demand.

To add a custom HTML head addition

  1. In the upper-right corner of any page, click the Admin global link.
  2. In the Application Customization section, click Application Customization.
  3. In the Application Setup section, click Custom HTML Head Tag.
  4. In the Custom HTML Head Tags Detail page, click Edit.
  5. In the HTML Head Additions text box, enter the <script> elements that you require.

    The <script> element can contain JavaScript code or can reference JavaScript files through the src attribute. The following is an example of a reference to a file uploaded as a client side extension:

    <script type="text/javascript" src="../user/content/Test.js"></script>

    The following is a reference to an external file:

    <script type="text/javascript" src="http://www.external.com/js/Test.js"></script>

  6. Click Preview to validate any changes you have made.
  7. Click Save.

For more information about managing HTML head additions, see Oracle CRM On Demand Online Help.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.