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 >

你可能感兴趣的:(VBScript)