vbscript in html does not execute code, what to do?

Jan Willems 0 Reputation points
2023-08-08T16:26:41.8833333+00:00

vbscript in html does not execute:

<HTML> <HEAD><TITLE>A Simple First Page</TITLE> <SCRIPT LANGUAGE="VBScript"> <!-- Sub Button1_OnClick MsgBox "Mirabile visu." End Sub --> </SCRIPT> </HEAD> <BODY> <H3>A Simple First Page</H3><HR> <FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM> </BODY> </HTML>

What to do?

Microsoft 365 and Office Development Office JavaScript API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jan Willems 0 Reputation points
    2023-08-08T16:27:53.1433333+00:00

    The full code is:

    <HTML>
    <HEAD><TITLE>A Simple First Page</TITLE>
    <SCRIPT LANGUAGE="VBScript">
    <!--
    Sub Button1_OnClick
       MsgBox "Mirabile visu."
    End Sub
    -->
    </SCRIPT>
    </HEAD>
    <BODY>
    <H3>A Simple First Page</H3><HR>
    <FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM>
    </BODY>
    </HTML>
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.