# Cancel

Use the Cancel method to cancel the changes since the most recent postback. Learn its syntax and parameters in documentation.

## Content

Cancels the changes since the most recent postback.

## Syntax

[JavaScript]

```javascript
FpSpread1.Cancel();
```

## Parameters

None

## Return Type

None

## Remarks

This method is similar to pressing the **Cancel** button on the command bar. This method causes a postback to occur.

## 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 onCancelButtonClick() {
       FpSpread1.Cancel(); // cancels the changes
   }
</script>
```

## See Also

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