change box-shadow
to boxShadow
. try this code for toggling focus
function inputfocus(x) {
x.style.boxShadow = '0 0 30px #96f226';
}
function inputblur(x) {
x.style.boxShadow = 'none';
}
<input type="text" onFocus="inputfocus(this)" onblur="inputblur(this)">
CSS
#input:focus{
box-shadow: 0 0 30px #96f226;
-webkit-box-shadow: 0 0 30px #96f226;
-moz-box-shadow: 0 0 30px #96f226;
}