<a href="javascript:gets();">获取</a>
<textarea id="ttt"></textarea>
<script language="javascript">
function gets()
{
var t = document.getElementById("ttt");
t.value = document.documentElement.outerHTML;
}
</script>
<textarea id="ttt"></textarea>
<script language="javascript">
function gets()
{
var t = document.getElementById("ttt");
t.value = document.documentElement.outerHTML;
}
</script>