with myHtmlImage
.attributes.item("onclick")="javascript:window.scrollTo(0,0)"
.styles.item("cursor")="hand"
.src="myPic.gif"
end with
如果要定位到其它任意控件,可以:
with myHtmlImage
.attributes.item("onclick")=
string.format("javascript:document.all['{0}'].focus()",otherCtrl.clientID)
.styles.item("cursor")="hand"
.src="myPic.gif"
end with