Set both the Alpha Transparency of Text and Backgrounds maintaining inheritance overrides
var element = document.getElementById("test"); element.style.backgroundColor = "#000"; /* you need to set the background color first*/ element.setBackgroundAlpha(50); /* 50 transparency */
Any element nested can also be change to it's own alpha transparency which was not possible with opacity css rule