<
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 >
< 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 >