3 <script type="text/vbscript">
13 ' Verifies that we're in VBScript although there is no type specified
14 If true then counter = counter+1
15 function inccounter(x)
19 <script type="text/javascript">
20 // We're in javascript
25 ok(false, "got an exception");
29 ' And back to VBScript
30 If true then counter = counter+1
33 Call ok(counter = 6, "counter = " & counter)
34 Call ok(isNull(document.onkeyup), "document.onkeyup is not null")
35 Call ok(document.formname.tagName = "FORM", "document.form.tagName = " & document.formname.tagName)
36 Call ok(formname.tagName = "FORM", "form.tagName = " & formname.tagName)
37 Call external.reportSuccess()
40 <script type="text/javascript">
41 // We're in javascript
43 <body onload="If true then runTest()">
44 <form name="formname"></form>