当前位置: 代码迷 >> JavaScript >> js 取得form表单中的action
  详细解决方案

js 取得form表单中的action

热度:119   发布时间:2012-08-28 12:37:01.0
js 获得form表单中的action
在IE7中document.getElementById('form').action=url会出错。

解决办法 document.getElementById('form').attributes['action'].value=url

这样就解决了。
  相关解决方案