Category:Javascript

From Traxel Wiki
Revision as of 01:06, 15 October 2023 by RobertBushman (talk | contribs) (Created page with "Category:Hacking = Hacks = Does obj have obj.magilla? <pre> return obj.hasOwnProperty("magilla"); </pre> = Add Lots of Divs = <syntaxhighlight lang="javascript"> var c = document.createDocumentFragment(); for (var i=0; i<10000; i++) { var e = document.createElement("div"); e.className = "test-div"; c.appendChild(e); } document.body.appendChild(c); </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hacks

Does obj have obj.magilla?

return obj.hasOwnProperty("magilla");

Add Lots of Divs

var c = document.createDocumentFragment();
for (var i=0; i<10000; i++) {
    var e = document.createElement("div");
    e.className = "test-div";
    c.appendChild(e);
}
document.body.appendChild(c);

Pages in category "Javascript"

This category contains only the following page.