javascript - Add css class after 10 seconds without jquery -


how can add css class after 10 seconds without jquery?

i want javascript in html code

var elem = document.getelementbyid("div");//based on fabrizio's comment declare outside settimeout(function(){    elem.classname = elem.classname + " otherclass"; },10000); 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -