title: setInterval how to stop it to load different css to work
body: <p>How do you stop an interval heres my code:</p>
  
  <p>function timeres(){</p>
  
  <p>if ((screen.width!=1280) &amp;&amp; (screen.height!=1024))
  {
   document.write
  }  </p>
  
  <p>}</p>
  
  <p>setInterval('timeres()',1);</p>
  
  <p>The code works great without the setinterval when i change resolutions i have to refresh the page to make the css take effect but i want it to auto change after a user changes his/her resolution so i thought maybe a setinterval will work</p>
  
  <p>go easy on code im a noob :D</p>