I would suggest if you wish to do something that's exclusively client side script based that you move to using Javascript instead of VBScript. What you're doing may work perfectly fine in IE, but unfortunately, client side scripting using VBScript is only supported by IE. Javascript, however, is cross browser. If you want to do server side scripting, you could look at using ASP which allows you to code using VBScript on the server side and still maintain cross browser compatibility.