Skip to main content

ElementContent

Callable

  • ElementContent(ID: string, Content?: string): string

  • Handles the content of a HTML element. It sets the content of the element when the Content parameter is provided or it returns the value when the parameter is omitted


    Parameters

    • ID: string

      The id of the element for which we want to get/set the value.

    • optionalContent: string

      The content/inner HTML to give to the element (if applicable)

    Returns string

    • The content of the element (When no Content parameter was passed to the function)