---
title: closeBackground
card_id: 105361
modified: yes
---

# closeBackground

`closeBackground`

Handler:

```
on closeBackground
   [ph:statements]
end closeBackground
```

HyperCard sends the `closeBackground` message to the current card when a user (or handler) quits HyperCard, goes to a card whose background is different from the background of the current card, and when a background or stack is deleted.

## Related Topics

* [deleteBackground](/HyperTalkReference/systemmessages/deleteBackground)
* [Message sending orders](/HyperTalkReference/systemmessages/Message-sending-orders)
* [newBackground](/HyperTalkReference/systemmessages/newBackground)
* [openBackground](/HyperTalkReference/systemmessages/openBackground)
* [Where messages are sent initially](/HyperTalkReference/systemmessages/Where-messages-are-sent-initially)
