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
Post a Comment