×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Srinivasan Pusuluri
Added: Apr 4, 2014 6:47 AM
Views: 15
Tags: no tags
window resize for all browsers
  1. //refresh page on browser resize
  2. $(window).bind('resize', function(e)
  3. {
  4.   if (window.RT) clearTimeout(window.RT);
  5.   window.RT = setTimeout(function()
  6.   {
  7.     this.location.reload(false); /* false to get page from cache */
  8.   }, 200);
  9. });