![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
canvas.style.display = “block” not working in HTML5
Change the setTimeout() to use a function reference. It works as the function available at the time the reference.
The reference will be transferred to the timeout event callback rather than a string reference:
window.setTimeout(startNow, 2000);
Set it like the following:
setTimeout(startNow, 1000); function startNow () { alert(‘Working correctly!'); }
Advertisements