The SVG Document.scripts property returns the list of script element in the document.
Syntax:
var scriptList = document.scripts
Return value: This property returns the list of script element in the document.
Example 1:
Output:
👁 Image
Example 2:
Output:
👁 Image