# GetActiveRow

Use the GetActiveRow method to get the index of the row of the active cell. Learn its syntax and parameters in documentation.

## Content

Gets the index of the row of the active cell.

## Syntax

[JavaScript]

```javascript
ret = FpSpread1.GetActiveRow;
```

## Parameters

None

## Return Type

Integer, row index of active cell

## Remarks

The row index is the index of the row on the displayed HTML page.

## Example

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

```javascript
<script type="text/javascript">
   function getRow() {
       ret = FpSpread1.GetActiveRow;
   }
</script>
```

## See Also

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