var calendarView = ig_getWebCalendarViewById("WebCalendarView1");
There are two ways to reference the WebCalendarView™ control on the client-side. All of WebSchedule™ controls can use the ig_getWebControlById function and pass in the Id of the control to access it on the client. Specifically for the WebCalendarView, you can use the ig_getWebCalendarViewById function to reference the control.
The following code shows you how to reference the control.
In Javascript:
var calendarView = ig_getWebCalendarViewById("WebCalendarView1");