jquery save width before resize
<p>How can I add a clause into this code that saves the previous width into a variable before it resizes each time?   </p>

<pre><code> $(window).on('load resize', function() {           
      var w = $(window).width();
      var h = $(window).height();

      $('#right1').css('top' , w &gt; 1250 ? -120 : -73 );  

    });
</code></pre>
