SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Created one aspx page and write in Main Content. I want to call SharePoint Modal Popup script on click event in sharepoint:MenuItemTemplate. How can i call javascript for modal popup in in Sharepoint 2013?

Any Suggestion?

share|improve this question
Please explain your question, not able to get your requirement properly. Thanks – Anuja Feb 8 '13 at 6:02
Thanks for your reply @Anuja, I have modified my question.. – Viraj Gorajia Feb 8 '13 at 7:11
 menuitemtemplate.ClientOnClickNavigateUrl ="javascript:SP.UI.ModalDialog.showModalDialog({url:'http:/sharedev/sitecreate.aspx', width:200px });";

or you can even try with ClientOnClickScript instead of ClientOnClickNavigateUrl

Hope this helps,

share|improve this answer
does the above one helps to you? – Anuja Feb 10 '13 at 18:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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