<body> <div id='aa'> sdfdsfdsf <input name="" type="button" onclick="aa();"/> </div> <script language="javascript"> function aa(){ document.getElementById('aa').innerHTML='123123'; } </script> </body>
posted on 2008-05-19 15:16 鲁胜迪 阅读(4445) 评论(4) 编辑 收藏
我认为改成这样更好 <body> <div id='aa'> sdfdsfdsf </div> <input name="" type="button" onclick="aa();"/> <script language="javascript"> function aa(){ document.getElementById('aa').innerHTML='123123'; } </script> </body> 回复 更多评论
<body> <div id='aa'> <input value="" type="text" id="text">text <input value="提交" type="button" onclick="aa();"/> </div> <script language="javascript"> function aa(){ document.getElementById('aa').innerHTML=document.getElementById('text').value; } </script> </body> 回复 更多评论
呀呀呀呀呀呀 回复 更多评论
11 回复 更多评论
Powered by: BlogJava Copyright © 鲁胜迪