usesJS: Query if HTML form uses JavaScript code

usesJSR Documentation

Query if HTML form uses JavaScript code

Description

These two functions allow us to query if the HTML form uses JavaScript code in the action/method or input elements. If so, static analysis of the form is more complicated if not impossible and we need to be able to evaluate the JavaScript code to determine possible arguments, values and input elements. This uses heuristics to determine if JavaScript code is present by analyzing the attributes of the input elements and the form itself.

Usage

usesJS(form)

Arguments

form

a description of the HTML form of interest, returned by getHTMLFormDescription.

Value

A logical value indicating if the form uses JavaScript code (TRUE).

Author(s)

Duncan Temple Lang

See Also

getHTMLFormDescription createFunction


omegahat/RHTMLForms documentation built on Nov. 29, 2023, 12:36 a.m.