<P><html><BR><head><BR><script><BR> var app = function()<BR> {<BR> var obj = document.getElementById("mypp");<BR> obj.attachEvent("onclick",foo1);<BR> obj.attachEvent("onclick",foo2);<BR> }</P> <P> var foo1 = function()<BR> {<BR> alert("clicked!");<BR> };<BR> var foo2 = function()<BR> {<BR> alert("also clicked!");<BR> };<BR> </script><BR></head> <BR> <body onload="app()"><BR> <p id="mypp">test</p><BR> </body><BR></html></P>
慕尼黑5688855
翻翻过去那场雪
相关分类