# GetSpread

Use the GetSpread method to get the Spread object with the specified HTML element. Learn its syntax and parameters in documentation.

## Content

Gets the Spread object with the specified HTML element.

## Syntax

[JavaScript]

```javascript
var spread = FpSpread1.GetSpread(element);
```

## Parameters

***element***
HTML element

## Return Type

Spread object (HTML element)

## Remarks

This method returns the Spread object (an HTML element) on the client that contains the specific HTML element. If there is no Spread object, the method returns Null.

## 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 onBodyClick() {
      var spread = FpSpread1.GetSpread(event.srcElement);
      if (spread!=null) {
          alert("You clicked spread "+spread.id);
          var parentSpread = spread.GetParentSpread();
          if (parentSpread!=null) {
              alert("The parent Spread is " + parentSpread.id);
          }
      }
  }
</script>
```

## See Also

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