The simple answer is they are both scripting 'languages' that have different syntax.
AFAIK, javascript will work with every gui web browser there is.
VBscript usually only works on Internet Explorer.
I would use javascript simply because it's supported by more browsers.
Also, don't confuse it with java, it's not the same thing, it was only designed to be similar to java.