# GetPageCount

Use the GetPageCount method to get the number of pages. Learn its syntax and parameters in documentation.

## Content

Gets the number of pages.

## Syntax

[JavaScript]

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

## Parameters

None

## Return Type

Integer

## Remarks

This method returns the page count. If the page size is 10 and there are 40 rows, the page count would be 4.

## 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 ss=document.getElementById("FpSpread1");
       var totalRow = ss.GetPageCount();
   }
</script>
```

## See Also

[GetTotalRowCount](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetTotalRowCount)
[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)