I have two custom button in page named as Week and Month, While clicking the month button I need to switch the calendar to month view, by same clicking the week button it need to be changed to week view. I am referring enter image description here

I am not sure how to achieve this.Please suggest me some idea to achieve this control

1 Answer 1


Finally, I achieved this by

<input name="Week" type="button" value="Week" onclick="Test()"  />

<input name="Day" type="button" value="Day" onclick="TestDay()"  />

<input name="Month" type="button" value="Month" onclick="TestMonth()"  />
<script type="text/javascript">

function Test()

function TestDay()

function TestMonth()


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.