Skip to main content

ElementPosition

Callable

  • ElementPosition(ElementID: string, X: number, Y: number, W: number, H?: number): void

  • Draws an existing HTML element at a specific position within the document. The element is "centered" on the given coordinates by dividing its height and width by two.


    Parameters

    • ElementID: string

      The id of the input tag to (re-)position.

    • X: number

      Center point of the element on the X axis.

    • Y: number

      Center point of the element on the Y axis.

    • W: number

      Width of the element.

    • optionalH: number

      Height of the element.

    Returns void

    • Nothing