肯定没有提示任何错误,就像没有动作一样,我把那两句注释掉,用alert("abc");就会弹出确认框
解决方案 »
- javaScript 模仿密码控件
- 用了图片滚动文本框光标闪动速度过快怎么解决呀
- 有请逍遥兄
- 请大大们帮帮忙,day day up
- 大侠帮帮我 为什么Jquery layout 里操作dialog,页面会闪.
- DIV拖动后,当我点击保存后用JSON格式把拖动后的坐标保存在TXT文本或者XMl中,求大神们给写一下代码,最好有注释!急!!!
- jquery-ui autocomplete 如何实现关键词高亮
- 网页效果,急!!!求求各位,进来看看吧!!
- 键盘替代鼠标进行数据录入问题
- 高手请进,两个数组的比较,取出不同结果的数放到另一数组
- 怎样做一个类似confirm的提示框,但是默认焦点要放在"取消"上? 在线等!
- 文本框.当用户输入时,怎么限制只能输入两行. (欢迎寻梦的稻草人进来,)
window.ShopCar.action = "car.asp?id="+id;
这样不行哩
document.getElementById('ShopCar'.action = "car.asp?id="+id;
ShopCar.action = "car.asp?id="+id;
ShopCar.submit();
ShopCar.action = "car.asp?id="+document.getElementById("id");如果还是不行就把ShopCar和id相关的贴出来
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>submit in firefox</title>
<script language="javascript">
function postValue()
{ //document.forms[0].action="show.shtml";
//document.forms[0].submit(); //document.f1.action="show.shtml";
//document.f1.submit();
document.getElementById('f1').action="register.asp";
document.getElementById('f1').submit();
}
</script>
</head><body>
<form action="" method="post" name="f1" id="f1">
<input type="button" value="submit" onclick="postValue()" />
</form>
</body></html>不管在IE还是FF里,这三种方法post到show.shtml都没有问题
原来<form action="" method="post" name="ShopCar"> 这样是不行了<form action="" method="post" name="ShopCar" id="ShopCar"> 还要加个ID上去才行!