topical media & game development
#javascript-code-27-examples.js / js
// Create a new <li> element
var li = create(“li”);
attr( li, “class”, “new” );
// Create some new text contents and add it to the <li>
append( li, “Thanks for visiting!” );
// Add the <li> onto the top of the first Ordered List
before( first( tag(“ol”)[0] ), <li> );
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.