title: Storing a variable in the JavaScript 'window' object is a proper way to use that object?
body: <p>(Maybe) I just solved a my problem (<a href="https://stackoverflow.com/questions/12388987/how-to-update-front-end-content-after-that-a-form-is-successfully-submitted-from">How to update front-end content after that a form is successfully submitted from a dialog window?</a>) by "storing" / "saving" a variable in the JavaScript <code>window</code> object. However, since I am newbie in JavaScript matters, <em>I have some doubts if storing / saving a variable in the JavaScript <code>window</code> object is a "common" / "proper" way to use that object</em>. Is it?</p>
  
  <p>For example, using the following code</p>
  
  <pre><code>$('.trigger').click(function() {
    window.trigger_link = this;
  });
  </code></pre>
  
  <p>is advisable?</p>