title: How to programmatically close a MessageDialog in Win8 app using WinJS?
body: <p>Here is <a href="https://stackoverflow.com/questions/12698666/how-to-close-message-dialog-programmatically">a similar question</a> to mine regarding how to programmatically close a MessageDialog in a Win8 app, but the author of the question is using C#.  I'm curious about how to solve the issue with WinJS.  Is there any way to cancel a MessageDialog programmatically with WinJS without have access to the CommanUI objects within the dialog itself?  I cannot simply invoke  the handler associated with an appended CommandUI button since, in some cases, I wouldn't know which button index has that functionality.</p>
  
  <p>Any tips?</p>
  
  <p>Thanks!</p>