Category:Javascript
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>")
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.