VBscript操作DOM

<html>
<body onLoad="setupEventHandler()" lang="vbscript">
<script  language="vbscript">

function setupEventHandler()
    
set fpchgBackground = getRef("chgBackground")
    
call mySpan.attachEvent("onclick", fpChgBackground)
end function

function chgBackground()
    document.bgColor 
= "lemonchiffon"
end function

</script>
<span ID="mySpan">span</span>
</body>
</html>
原文地址:https://www.cnblogs.com/lhb25/p/1359454.html