Since I have not yet seen an example of code that works without jQuery, here is one of them:
document.getElementById("test").style.webkitBoxShadow = "0px 0px 11px #000";
Note that the javascript property does not match the CSS property. Javascript properties do not use dashes and use camelCase instead.
And here is a working demo here: http://jsfiddle.net/jfriend00/4LT7u/
source share