Some usefull HTML5 APIs

Oscar Brito

HTML5 Context Menu's:

http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#context-menus

See Firefox running example in:
http://davidwalsh.name/demo/html5-context-menu.php

ClassList HtmlElement property:

// Add a class to an element
myElement.classList.add("newClass");

// Remove a class to an element

myElement.classList.remove("existingClass");

// Check for existence

myElement.classList.contains("oneClass");

// Toggle a class

myElement.classList.toggle("anotherClass");



Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.