focus doesn't work in IE
- by Syom
i have the following function
function change()
{
var input=document.getElementById('pas');
var input2= input.cloneNode(false);
input2.type='password';
input.parentNode.replaceChild(input2,input);
input2.focus();
}
but focus() doesn't work in ie7, so what can i do!
i want to have the cursor inside of input!
thanks