<html>
<head>
<title>TestDispSimple</title>
<script language="JavaScript">
function TestDispSimple()
{
var dispSimpleObj = new ActiveXObject("Simple8.CDispSimple"); //以ProgID启动组件
window.alert(dispSimpleObj.Upper("how do you do? '/0' :)"));
window.alert(dispSimpleObj.Add(1, 2)); //3
window.alert(dispSimpleObj.Add("Hello", " World!")); //Hello World
window.alert(dispSimpleObj.Add(100, "23")); //10023
dispSimpleObj.Quit(); // tidy up
}
</script>
</head>
<body onLoad="TestDispSimple()">
</body>
</html>