I want to give a
-webkit-box-shadow:inset 0 0 5px black;
property to a text box as one focuses on it.
For example, here the background-color is being changed, but I want box-shadow instead.
<script>
function myFunction(x)
{
x.style.background="yellow";
}
</script>
and the HTML
<input type="text" onfocus="myFunction(this)">