Click here to Skip to main content
15,897,518 members

Comments by Member 10749093 (Top 43 by date)

Member 10749093 4-Feb-15 1:13am View    
thanks for your answer peter. the reason i want to put all codes in 1 single file because i want to make my page load faster instead of creating so much js files and linked to my page it will make the page load slow.
Member 10749093 4-Feb-15 1:10am View    
thanks for your answer. i just wanted to make sure because, i have 2 pages and on page1.html i have div called load_content that will display div in 10 seconds and load its content after the page loaded. and on page2.html i have div called refresh_in_ten that will appear in 10 seconds and refresh the page automatically. so now on each page in head section i have linked same js file like this <script type="text/javascript" src="main.js"></script>

so now in that main.js file i have code for that div load_content and i have code for div refresh_in_ten

and that make problem for my divs one working and other don't etc. unless i make 2 js files and enter the codes for each div in single file
Member 10749093 31-Jan-15 8:45am View    
Thanks for your time Avik appreciate it, but i have solved this by myself.
Member 10749093 31-Jan-15 0:42am View    
thanks for your answer Avik, but your code is only a good countdown timer but it doesn't refresh the page automatically and there's no button to reset the timer back to 60 seconds again without refreshing the page
Member 10749093 30-Jan-15 23:51pm View    
thanks for your answer. but i am not asking how to refresh a page. i am asking about "when there's 10 seconds left to refresh the page then, a button will display and say "Click here to reset timer" and it will reset that timer to 1 min again"