Developer Function: Script: $p.events.on_calendar_load
## Overview
This explains how to specify a method to be executed when the "[Calendar](/en/manual/table-calendar)" is loaded or when the displayed content is changed by a filter, etc.
## Syntax
When setting up a script, make sure to check "Calendar" for "Output destination."
##### JavaScript
```
$p.events.on_calendar_load = function () {
//Processing content
}
```
## Usage Example
If you set the following sample code to Pleasanter script, a message will be displayed at the bottom of the screen when the calendar screen is loaded.
##### JavaScript
```
$p.events.on_calendar_load = function () {
$p.setMessage('#Message', JSON.stringify({
Css: 'alert-success',
Text: 'The calendar screen has loaded.'
})
);
}
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-calendar">Table Function: Calendar Display of Records</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-calendar">Table Management: Calendar</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />