VB script works on in Internet Explorer Browser.
VB script works only up to IE 6 version. So, in order to convert your VB Script to JAVASCRIPT, use the below Online Tool
http://slingfive.com/pages/code/scriptconverter/
This tool is easy to use. Try it!!!
Note:
This site works only in Internet Explorer Browser.