相关疑难解决方法(0)

How can I force the browser to redraw while my script is doing some heavy processing?

I am using the innerHTML property to modify a DIV dynamically, to report on a process that takes a few seconds to finish. The problem is that on Firefox the page is not actually re-rendered to reflect that change until after the script has finished. This makes the app feel sluggish. Is there a way to make sure that changes to the HTML show up immediately, even if more scripts are running?

html javascript css dom

8
推荐指数
2
解决办法
4060
查看次数

标签 统计

css ×1

dom ×1

html ×1

javascript ×1