Javascript Abbreviation Library v0.1
Features:
- This library shortens the names of common methods like getElementById to gEI, appendChild to aC. See script comments for all abbreviations.
- It lets things like appendChild (element.aC) take a string and append it as a text node automatically.
- It adds the methods element.pC and iA (prependChild and insertAfter).
- It lets document.cE (createElement) take an id as a second argument and the element will have that id.
- It adds document.rE (removeElement) to go with createElement (cE).
- It makes alert() return what you pass it, so you can simply wrap a value in alert (Ex: if(alert(value) == 3) dosomething(value);) for easier testing.
- New: now works in IE via manual extention like Prototype.js does.
- More, see script comments for full details.
Download
Error: Javascript is disabled.