Help Center

Local Navigation

Object: HTMLScriptElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLScriptElement object represents a <script> element in an HTML document.

The <script> element defines a script.

HTMLScriptElement properties

Property name

Type

Description

Status

Support level

Availability

charset

DOMString

Specifies the character encoding used in the script.

writable

DOM 2 HTML

4.6 or later

defer

boolean

When true, indicates that the script does not generate any document content and that the BlackBerry® Browser can therefore defer processing the script.

writable

DOM 2 HTML

4.6 or later

event

DOMString

This property is not currently defined in the DOM HTML specification.

undefined

DOM 2 HTML

4.6 or later

htmlFor

DOMString

This property is not currently defined in the DOM HTML specification.

undefined

DOM 2 HTML

4.6 or later

src

DOMString

Specifies the URI where an external script document is located.

writable

DOM 2 HTML

4.6 or later

text

DOMString

Specifies the script content.

writable

DOM 2 HTML

4.6 or later

type

DOMString

Specifies the content type of the script.

In BlackBerry® Device Software 5.0 or earlier, the BlackBerry Browser engine ignores this variable when determining whether or not to execute the content as JavaScript®. Instead, the browser checks the language attribute.

writable

DOM 2 HTML

4.6 or later


Was this information helpful? Send us your comments.