# Custom Script Parameters

The parameters in this section can be used to run custom JavaScript on a page, before the page is ingested.

You can set these parameters in the TaskName section. For example:

    [MyTask]
    Url=http://www.hpe.com
    ...
    CustomJSUrlRegex=http://www\.hpe\.com/folder/.*
    CustomJSScriptPath=javascript/my_script_0.js

Alternatively, use the parameter CustomJSSections to list the names of configuration sections that contain settings for running custom JavaScript. For example:

    [MyTask]
    Url=http://www.hpe.com
    ...
    CustomJSSections=CustomJS0,CustomJS1

    [CustomJS0]
    CustomJSUrlRegex=http://www\.hpe\.com/folder/.*
    CustomJSScriptPath=javascript/my_script_0.js

    [CustomJS1]
    CustomJSUrlRegex=.*
    CustomJSScriptPath=javascript/my_script_1.js

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm