DHTMLX Docs & Samples Explorer

Index
dhtmlxcalendar
Event Handling

## onChangeMonth Event

This event calls user-defined handlers (if there are any) and passes the following parameters:

- curMonth - the current month (after the change);
- prevMonth - the previous month (before the change).

          mCal.attachEvent("onChangeMonth",function(curMonth,prevMonth){

                    alert("Current month : " + curMonth + " Prev Month  : " + prevMonth);

                })