<table onclick="this.customTag='My custom tag';alert(this.outerHTML)">
<tr><td>TABLE</td></tr>
</table>旧帖子如果打不开,需要重新建立静态页面,请看这里
http://expert.csdn.net/Expert/TopicView1.asp?id=1124036
<tr><td>TABLE</td></tr>
</table>旧帖子如果打不开,需要重新建立静态页面,请看这里
http://expert.csdn.net/Expert/TopicView1.asp?id=1124036
<script>
te.runmin_sas = "e";
alert(te.runmin_sas);
</script>这样子也行?GOD。
te.runmin_sas = "e";
alert(te.runmin_sas);
</script>不知道要IE多少支持啊。
但是,我还有一点想明确的:在执行完插入操作之后,如果我将此时的整个网页的html文件发送出去,接收到的html中是否真实的存在这段标记。
其实,也就是javascript是否按照要求改写了html代码这个文件?或者它是改写了缓存中的这个html文件,并且可以将此改写后的文件发送出去?
document.onclick=settag;
function settag()
{
event.srcElement.customtag="";
}
function send()
{
alert(document.documentElement.outerHTML);
}
</script>
<table><tr><td>bobic!!!</td></tr></table>
<input>
<input type=checkbox>
<input type=button onclick=send()>