JS获取整个HTML网页代码 - Android 集美软件园 - 博客频道 - ****.NET
- <script language="javascript" type="text/javascript">
- function load()
- {
- var test=document.getElementsByTagName('html')[0].innerHTML;
- alert(test);
- }
- </script>
<script language="javascript" type="text/javascript">
function load()
{
var test=document.getElementsByTagName('html')[0].innerHTML;
alert(test);
}
</script>//输出结果