---
title: send
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/xmlhttprequest/1627309-send
---

# send

Sends the request.

## Declaration

```data
void send(
    in Object dataToSend
);
```

```data
void send();
```

## Parameters

- `dataToSend`: The data sent.

## Discussion

Discussion For asynchronous requests, this function immediately returns control back to the app. Synchronous requests don’t return control back to the app until the response has arrived.

## See Also

### Initializing and Sending a Request

- [abort](tvmljs/xmlhttprequest/1627356-abort.md)
- [open](tvmljs/xmlhttprequest/1627318-open.md)
- [timeout](tvmljs/xmlhttprequest/1627335-timeout.md)
- [XMLHttpRequest](tvmljs/xmlhttprequest/1627350-xmlhttprequest.md)
