Menu Home

script

osbo.com | SVG | Elements | script

The script SVG element specifies a script to be included in an SVG document.

Syntax

Attributes

crossorigin

Specifies how crossorigin requests are handled.

Value
[ anonymous | use-credentials ]?
Default
(No CORS)

href

Specifies a Uniform Resource Locator (URL) reference to the element.

Value
<url>
Default
(none)

type

Specifies the scripting language.

Value
<string>
Default
application/ecmascript

Examples

crossorigin

anonymous

use-credentials

href

<url>

type

<string>

World Wide Web Consortium (W3C)