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:


Previous Article
Next Article

Similar Reads

SVG &lt;svg&gt; Element
SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. SVG graphics are supported by the &lt;svg&gt; element in HTML. SVG graphics feature a container in which we can create a variety of shapes such as boxes, pathways, text, graphic images, and circles. Syntax: &lt;svg width="x" height="y"&gt; sh
2 min read
SVG type Attribute
The type attribute is a non-specific attribute that has a different meaning according to the context in which it used. It defines the type of transformation, for the &lt;animateTransform&gt; element whose values change over time.It defines the type of matrix operation, for the &lt;feColorMatrix&gt; element.It defines the type of component transfer
2 min read
SVG FETurbulenceElement.type Attribute
The SVG FETurbulenceElement.type property returns the SVGAnimatedEnumeration object corresponding to the type component of the FETurbulencee.type element. Syntax: var a = FETurbulenceElement.type Return value: This property returns the SVGAnimatedEnumeration object corresponding to the type component of the FETurbulencee.type element. Example 1: C/
1 min read
Typescript Required&lt;Type&gt; Utility Type
In this article, we are going to learn about the Required&lt;Type&gt; in Typescript. TypeScript is a popular programming language used for building scalable and robust applications. One of the features of Typescript is Required&lt;Type&gt; which is a built-in utility type that allows you to create a new type that makes all properties of the origina
4 min read
Typescript Record&lt;Keys, Type&gt; Utility Type
In this article, we are going to learn about the Record&lt;Keys, Type&gt; in Typescript. TypeScript is a programming language that is a strict syntactical superset of JavaScript. It adds optional static typing and class-based object-oriented programming to JavaScript, one of the features is Record&lt;Keys, Type&gt; which is a built-in utility type
4 min read
Typescript Partial&lt;Type&gt; Utility Type
In this article, we are going to learn about the Partial&lt;Type&gt; that is available in the Typescript. One of the features in Typescript is Partial&lt;Type&gt; which is a built-in utility type. It helps to create a new type by making all properties of an existing type optional. Now we can pass properties of an object of a new type that is create
4 min read
Typescript Awaited&lt;Type&gt; Utility Type
In this article, we are going to learn about the Awaited&lt;Type&gt; in TypeScript. It is a programming language that is a strict syntactical superset of JavaScript. It adds optional static typing and class-based object-oriented programming to JavaScript, one of the features of the typescript is Awaited&lt;Type&gt; it is a utility type in TypeScrip
2 min read
TypeScript Omit&lt;Type, Keys&gt; Utility Type
In this article, we are going to learn about the Omit&lt;Type, Keys&gt; utility type in Typescript. TypeScript is a powerful language that provides many utility types to make development easier and more efficient. One of the Typescript features is Omit utility type. We can use it when, let's say there exists a type already but we want to create a n
4 min read
TypeScript Pick&lt;Type, Keys&gt; Utility Type
In this article, we are going to learn about the Pick&lt;Type, Keys&gt; utility type in TypeScript. TypeScript is a programming language that is a strict syntactical superset of JavaScript. It adds optional static typing and class-based object-oriented programming to JavaScript, Pick&lt;Type, Keys&gt; is one of the features of Typescript which is a
5 min read
TypeScript Extract&lt;Type, Union&gt; Utility Type
In this article, we are going to learn about Extract&lt;Type, Union&gt; utility type in TypeScript, TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tools at any scale. Extract&lt;Type, Union&gt; utility type is used to extract a subset of types from a union type that matches a certain criterion, This
4 min read