Open In App

SVG ScriptElement.type Property

Last Updated : 30 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The SVG ScriptElement.type property returns an SVGAnimatedLength object corresponding to the attribute of the given script element.

Syntax:

ScriptElement.type

Return value: This property returns SVGAnimatedLength object that can be used to get the type of the script element.

Example 1:

HTML




<!DOCTYPE html> 
<html
  
<body
    <script type="text/javascript">
        console.log('GeeksforGeeks')
    </script>
</body
  
</html>


Output:

Example 2:

HTML




<!DOCTYPE html> 
<html
  
<body
    <script type="text/ecmascript">
        document.write('GeeksforGeeks')
    </script>
</body
  
</html>


Output:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads