Hello forums
I have this code:
Code HTML4Strict:<div id="mainChat" style="display:none"> <div id="chatWindow"></div> <script type="text/javascript"> setInterval("loadContent()", 1000 ); </script> </div>
loadContent() is a function to load an external file inside "chatWindow" div. I want it to run every 1 second.
Question: does the setInterval function runs even if "mainChat" div is hidden?
Thanks







Bookmarks