# Copy

Use the Copy method to copy the contents of the selected cells to the clipboard. Learn its syntax and parameters in documentation.

## Content

Copies the contents of the selected cells to the Clipboard.

## Syntax

[JavaScript]

```javascript
FpSpread1.Copy();
```

## Parameters

None

## Return Type

None

## Remarks

This method is similar to pressing the **Copy** button on the command bar. This method does not cause 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 moveSelection() {
    FpSpread1.Copy(); // copies the selection to Clipboard
    FpSpread1.SetActiveCell(0,0); // goes to top of displayed sheet
    FpSpread1.Paste(); // pastes selection
  }
</script>
```

## See Also

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