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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -