SVGStringList: insertItemBefore() method - Web APIs | MDN

Syntax

js

insertItemBefore(newItem, index)

Parameters

newItem

The string to add to the list.

index

A non-negative integer that specifies the index of the item to insert the new item before.

Return value

The string that was added to the list.

Exceptions

NoModificationAllowedError DOMException

Thrown if the SVGStringList corresponds to a read-only attribute or when the object itself is read-only.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGNameList__insertItemBefore

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.