20 строки
423 B
JavaScript
20 строки
423 B
JavaScript
function start()
|
|
{
|
|
var p = document.getElementById("p");
|
|
detached = document.createElement("div");
|
|
p.appendChild(detached);
|
|
p.removeChild(detached);
|
|
fill();
|
|
}
|
|
|
|
function fill()
|
|
{
|
|
for (var i = 0; i < 25; ++i) {
|
|
var div = document.createElement('div');
|
|
div.data = new Array(10000);
|
|
for (var j = 0, l = div.data.length; j < l; ++j)
|
|
div.data[j] = j.toString();
|
|
detached.appendChild(div);
|
|
}
|
|
}
|