JavaScript获取HTML页面源代码
来自:http://www.cnblogs.com/luckbird/archive/2008/02/01/1061048.html
<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>