编辑您的代码:
查看结果:
<html> <head> <script type="text/javascript"> function changeAction() { var x=document.getElementById("myForm") alert("Original action: " + x.action) x.action="../htmldom/index.asp" alert("New action: " + x.action) x.submit() } </script> </head> <body> <form id="myForm" action="/i/eg_smile.gif"> 名称:<input type="text" value="米老鼠" /> <input type="button" onclick="changeAction()" value="改变 action 属性并提交表单" /> </form> </body> </html>
查看结果:
系统帮助
|
给我留言
|
收藏本站
Copyright © 2005-2008
www.cnn84.com
All Rights Reserved Ver:2.0
桂公网安备45122402000102号
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南
太晚了,CNN84提醒您:该休息了!