I have a problem with embedding a VBScript to my Javascript in a .js file. I want to place a title to my alert boxes, so I want to use the VBScript.
I have a .js file, and this is what I want to insert in my .js file.
<script language="VBScript">
Function makeMsgBox(tit, mess, icon, buts, defs, mode)
butVal = icon + buts + defs + mode
makeMsgBox = MsgBox(mess, butVal, tit)
End Function
</script>
But it gives me an error, I think it does not allow me to insert a VBScript in my Javascript file.
scripttag and contents for the VBScript with Javascript, but why not just put it in it's own file with the appropriate filetype? You could of course use something like a jQuery Dialog instead, which would probably be preferable.