<script> for(i=0; i<1000; i++){ alert('приветик') } </script>
<script> for(i=0;i<1000;i++) { find(); } </script>