WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: htmlAttrs.

File.prototype.htmlAttrs()

Returns HTML attributes to inject in a HTML tag so that client tools recognize the file.

Syntax

file.htmlAttrs() string

Description

Returns HTML attributes to inject in a HTML tag so that client tools recognize the file in the browser.

WARNING: the class o1-file MUST also be included otherwise the client tools will not make use of the attributes.

Examples

Typical example.

Subscribe to our newsletter!