# GetTitleInfo

Use the GetTitleInfo method to get the title or subtitle. Learn its syntax and parameters in documentation.

## Content

Gets the title or subtitle.

## Syntax

[JavaScript]

```javascript
var ret = FpSpread1.GetTitleInfo();
```

## Parameters

None

## Return Type

Object

## Remarks

This method can be used to return the title of the Spread component, the subtitle, or other properties of the **TitleInfo** class.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function getHValue() {
       var title = FpSpread1.GetTitleInfo();
       alert(title.rows(0).cells(0).innerText);
       alert(title.rows(1).cells(0).innerText);
   }
</script>
```

## See Also

[GetRowCount](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetRowCount)
[SetValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetValue)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)