title: How to close window from button
body: <p>I have this window:</p>
  
  <pre><code> &lt;script&gt;
   jQuery(function()
   {  
        jQuery("#loginWindow").kendoWindow({
            "modal":true,
            "iframe":false,
            "draggable":true,
           "pinned":false,
           "title":"Login",
           "resizable":false,
           "content":null,
          "width":300,
          "height":350,
          "actions":["Close"]
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>It has a close button in the top right, but I also want to put a button on the bottom of the form it is on to close it.  </p>
  
  <p>Here is the form.  Instead of closing the form, it makes the ajax call just like the submit button.</p>
  
  <pre><code>     &lt;form action="/Account/Login" data-ajax="true" data-ajax-mode="replace" data-ajax-update="#loginSection" method="post"&gt;    
          &lt;div id="loginSection"&gt; 
              &lt;input type="submit" value="Log in" /&gt;
              &lt;button onclick="cancelLogin()" &gt;Cancel&lt;/button&gt;
              &lt;script&gt;
                  function cancelLogin()
                  {
                      var window = $("#registerWindow").data("kendoWindow");
                      window.close();
                  } 
              &lt;/script&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>