用script可以重写body 内容吗? 比如<head><script>........</script><body><div>...</div>我想等页面都下完后,执行function后重写 <body></body>之间所有内容,可以吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body><form name="form1" action="" method="POST" onsubmit="return check()"> <div id="div_01" style="display: block;">1 <input type="text" name="car_no" id='car_no' /> <input type="text" name="car_no" id='car_no' /> <input TYPE="button" value="下一步" onClick="next('div_01','div_02')" > </div> <div id="div_02" style="display: none;">2 <input type="text" name="car_no" id='car_no' /> <input type="text" name="car_no" id='car_no' /> <input TYPE="button" value="下一步" onClick="next('div_02','div_03')" > </div> <div id="div_03" style="display: none;">3 <input type="text" name="car_no" id='car_no' /> <input type="text" name="car_no" id='car_no' /> <input TYPE="button" value="下一步" onClick="next('div_02','div_03',function(){alert('提示的话')})" > </div></form> </body> <script> window.onload = function(){ var _body = document.body || document.documentElement; _body.innerHTML = '<p>我是重写的内容</p>' }; </script></html> <script> window.onload = function(){ var _body = document.body || document.documentElement; _body.innerHTML = '<p>我是重写的内容</p>' }; </script>对的 easyUI中,form表单怎样放到弹出的window窗口中 请问关闭母视窗时判断子视窗开关 在JS中,我想獲得當前節點的父親節點,有什麼方法,請指點。 iframe 取值问题····· 能否让window.open不打开新窗口而是刷新已有窗口 怎样获取本页的动态地址 加入 收藏夹? 千位分隔符的问题 请问 $("#GridView1").toSuperTable 那位高手能帮我,把这段程序改写成JavaScript的,现在是用vbs写的 聊天室滚屏的问题 关与aspx与asmx 这两个什么区别。 如何修改ymprompt的默认插入位置?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title> </head> <body>
<form name="form1" action="" method="POST" onsubmit="return check()">
<div id="div_01" style="display: block;">1
<input type="text" name="car_no" id='car_no' />
<input type="text" name="car_no" id='car_no' />
<input TYPE="button" value="下一步" onClick="next('div_01','div_02')" >
</div>
<div id="div_02" style="display: none;">2
<input type="text" name="car_no" id='car_no' />
<input type="text" name="car_no" id='car_no' />
<input TYPE="button" value="下一步" onClick="next('div_02','div_03')" >
</div>
<div id="div_03" style="display: none;">3
<input type="text" name="car_no" id='car_no' />
<input type="text" name="car_no" id='car_no' />
<input TYPE="button" value="下一步" onClick="next('div_02','div_03',function(){alert('提示的话')})" >
</div>
</form>
</body>
<script>
window.onload = function(){
var _body = document.body || document.documentElement;
_body.innerHTML = '<p>我是重写的内容</p>'
}; </script>
</html>
window.onload = function(){
var _body = document.body || document.documentElement;
_body.innerHTML = '<p>我是重写的内容</p>'
}; </script>
对的