3 <script type=
"text/vbscript">
15 ' Verifies that we're
in VBScript although there is no type specified
16 If
true then counter
= counter
+1
17 function inccounter(x
)
21 <script type=
"text/javascript">
22 // We're in javascript
27 ok(false, "got an exception " + e
.message
);
31 ' And back to VBScript
32 If true then counter = counter+1
35 Call ok(counter = 6, "counter = " & counter)
36 Call ok(isNull(document.onkeyup), "document.onkeyup is not null")
37 Call ok(document.formname.tagName = "FORM", "document.form.tagName = " & document.formname.tagName)
38 Call ok(formname.tagName = "FORM", "form.tagName = " & formname.tagName)
39 Call external.reportSuccess()
42 <script type="text/javascript">
43 // We're
in javascript
45 <body onload=
"If true then runTest()">
46 <form name=
"formname"></form>