Skip to content
Related Articles

Related Articles

SVG ScriptElement.type Property
  • Last Updated : 06 Nov, 2020

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



filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output:

Example 2:

HTML

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output:

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :