title: Get video height from load function
body: <p>How can I get the value of video height which is placed inside function?</p>
  
  <p><a href="http://jsfiddle.net/tw7jH/" rel="nofollow">fiddle</a></p>
  
  <p>Tried:</p>
  
  <pre><code>$(window).load(function(){
     var videoHeight = $('video').height();
     return videoHeight; // return the value 
  });
  
  $(window).load(function(){
     videoHeight = $('video').height(); // make the globar var 
  });
  </code></pre>