Element.classList The classList API provides the basic CSS controls our JavaScript libraries have been giving us for years: // 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" ) ; The epitome of a great API addition: simple and intelligent. ContextMenu API The new ContextMenu API is excellent: instead of overriding the browser context menu, the new ContextMenu API allows you to simply add items to the browser's context menu: contextmenu = "mymenu" > type = "context" id = "mymenu" > label = "Refresh Post" onclick = "window.location.reload();" icon = "/images/refresh-icon.png" > label = ...
As a seasoned expert in AI, Machine Learning, Generative AI, IoT and Robotics, I empower innovators and businesses to harness the potential of emerging technologies. With a passion for sharing knowledge, I curate insightful articles, tutorials and news on the latest advancements in AI, Robotics, Data Science, Cloud Computing and Open Source technologies. Hire Me Unlock cutting-edge solutions for your business. With expertise spanning AI, GenAI, IoT and Robotics, I deliver tailor services.