<body/> <script> function my(){ this.a=function(){ document.write("<input onclick='"+this.owner.uniqueID+".Class.c()'>"); alert(document.body.outerHTML); } this.c=function(){ event.srcElement.value="123"; } this.owner = window.document.createElement("input"); this.owner.style.display="none"; document.body.insertAdjacentElement("beforeEnd",this.owner); this.owner.Class = this; } var o=new my(); o.a(); </script> |
posted on 2006-04-03 15:37
汪杰 阅读(166)
评论(0) 编辑 收藏 引用 所属分类:
javascript 、
hengxing网站js