在a.html文件中,用document.write写的东西后,如何重新清空改页面? 例如,在a.html文件中,用document.write写的东西后,用哪个函数可以把页面清空,变成空白页? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.open()document.write("start") document.body.innerHTML = ""; <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title></title></head><body><button onclick="fun1()">open</button><button onclick="fun2()">close</button><button onclick="fun3()">innerHTML</button><button onclick="fun4()">reload</button><SCRIPT LANGUAGE="JavaScript"><!--function fun1(){document.write("afgsdfgsd<br>")document.open()}function fun2(){document.write("afgsdfgsd<br>")document.close()}function fun3(){document.write("afgsdfgsd<br>")document.body.innerHTML="";}function fun4(){document.write("afgsdfgsd<br>")location.reload()}//--></SCRIPT></body></html> 分享:圆形弧轨迹效果 页面背景已被载入判断 用jquery或者Js怎么判断我网页的个window.open事件? 高手来。这个JS登陆代码酷毙了。 for语句应用,请您解答,谢谢。 本人初学javascript,请高手指点一下 问高手问题,不停刷新,解决给分 弹出新窗口的问题 在下拉列表中,选项表示不同的页面名...... jqGrid删除功能上传到后台的是行 id 请问怎么才能让删除功能上传整行数据或者第一行的主键RID JavaScript迷惑问题之六:innerHTML和eval()的问题 onClick 让 IE 全屏
document.write("start")
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body><button onclick="fun1()">open</button>
<button onclick="fun2()">close</button>
<button onclick="fun3()">innerHTML</button>
<button onclick="fun4()">reload</button><SCRIPT LANGUAGE="JavaScript">
<!--
function fun1()
{
document.write("afgsdfgsd<br>")
document.open()
}
function fun2()
{
document.write("afgsdfgsd<br>")
document.close()
}
function fun3()
{
document.write("afgsdfgsd<br>")
document.body.innerHTML="";
}
function fun4()
{
document.write("afgsdfgsd<br>")
location.reload()
}
//-->
</SCRIPT>
</body>
</html>