How to Call VBScript in Javascript

No.of Views3308
Bookmarked0 times
Downloads 
Votes0
By  Daan   On  10 Nov 2010 10:11:48
Tag : VBScript , How to
In this snippet, i will show How to Call VBScript in Javascript.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

In 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.

 
Sign Up to vote for this article
 
About Author
 
Daan
Occupation-Not Provided
Company-Not Provided
Member Type-Fresh
Location-Netherlands, The
Joined date-16 Sep 2010
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
By:SAMIDate Of Posted:3/9/2012 10:58:33 AM
AWESOME
BRO THIS IS WAY TO COOL... THANKS BUDDY
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top