$ 0 0 I have executed your code and it is working fine. The output was : Your javacript code will only work in IE browser because all browsers does not support ActiveXObject.Thanks,Ritu