怎么把内容打开网页显示,但查看源码时看不到 怎么把内容打开网页时显示,但查看源码时看不到以前看到一个很简单的方法,知道的大哥直接给下代码好吗?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>查看源文件为空-</title><script> function clear() { Source=document.body.firstChild.data; document.open(); document.close(); document.body.innerHTML=Source; } </script></head><body onload=clear()>很多文字很多文字很多文字很多文字很多文字很多文字很多文字很多文字</body></html> 给个示例好吗??或者直接给代码,我是菜鸟我记得以前的好象就放在一个<script></script>里面然后可以执行转向,但源码里不会显示出来网页代码,我实在是搜不到了,麻烦高手帮忙下 用ajax去请求你要的页面文件,然后把返回的response.text放到dody里面。 给你个简单的代码,我用了prototype.js作ajax请求。关于prototype.js的ajax,参看http://www.prototypejs.org/api/ajax/request<html> <head> <title>test prototype ajax</title> <script language="javascript" src="http://www.prototypejs.org/assets/2008/9/29/prototype-1.6.0.3.js"></script></head> <body> </body><script>new Ajax.Request('http://www.google.cn', { method: 'get', onSuccess: function(transport){ document.body.innerHTML = transport.responseText; }});</script></html> 这种方式好像图片不显示。还有一种方法, 用ajax在页面创建iframe, 给iframe的src赋值,通过调整iframe的样式使它看起来像没有实用框架一样。 100分求JQUERY 返回值问题!怎么区分返回的值! 新手问题,高分相送 js调用VB ocx,然后给ocx中的vb type赋值 正在提交表单数据,请稍侯 ...... 如何获取<select><option...改变之前的value和index?谢谢! 高价找javascript高手代写web程序 怎么用除法啊? 下拉列表的问题 急问java script中如何在跳转到一个页面时,禁止用户按IE的后退按钮! 我已经0分了,没办法给大家了,不过asp的问题还是要问的,这个问题怎样解决? 日程提醒 javascript函数
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>查看源文件为空-</title>
<script>
function clear() {
Source=document.body.firstChild.data;
document.open();
document.close();
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
很多文字很多文字很多文字很多文字
很多文字很多文字很多文字很多文字
</body>
</html>
http://www.prototypejs.org/api/ajax/request<html>
<head>
<title>test prototype ajax</title>
<script language="javascript" src="http://www.prototypejs.org/assets/2008/9/29/prototype-1.6.0.3.js"></script>
</head>
<body> </body>
<script>
new Ajax.Request('http://www.google.cn', {
method: 'get',
onSuccess: function(transport){
document.body.innerHTML = transport.responseText;
}
});
</script>
</html>
还有一种方法, 用ajax在页面创建iframe, 给iframe的src赋值,通过调整iframe的样式使它看起来像没有实用框架一样。