IntroductionIn this snippet, i will show How to Call VBScript in Javascript.because most of the time we use the javascript than vb script. but sometime vbscript do more work than javascript. so in my project I'm using vbscript. but i have a javascript. so i want to call that javascript in to my vbscript.there is one more reason, it's actually working fine in IE but not other browser. As we all know, client side vbscript is microsoft product and it's only support in IE.i have done that, here that for you all. Code <html>
<head>
<script language="vbscript">
Function vbFunc()
Msgbox("VBScript: Vb function")
End Function
</script>
<script language="javascript">
function jsFunc() {
alert("Javascript: jsFunc function");
vbFunc();
}
</script>
</head>
<body onload="jsFunc()">
</body>
</html>This is may be small snippet. its worth for share. |