Developer Function: Script: $p.events.on_crosstab_load
## Overview
This explains how to specify a method to be executed when a "[Crosstab](/en/manual/table-crostab)" is loaded or when the displayed content is changed by a filter, etc.
## Syntax
When setting up a script, make sure to check "Crosstab" for "Output destination."
##### JavaScript
```
$p.events.on_crosstab_load = function () {
//Processing content
}
```
## Usage Example
If you set the following sample code to the Pleasanter script, a message will be displayed at the bottom of the screen when the crosstab screen is loaded.
##### JavaScript
```
$p.events.on_crosstab_load = function () {
$p.setMessage('#Message', JSON.stringify({
Css: 'alert-success',
Text: 'Crosstab loaded.'
})
);
}
```