set attribute as important js code example Example: how to make a property important in javascript element.style.setProperty("display", "inline", "important")