<form name=form1>
<input style="display:none" name=action>
<input type="submit" value="确定" onclick="form1.action.value='A';alert(form1.action.value)" id=submit1 name=submit1>
</form>
<input style="display:none" name=action>
<input type="submit" value="确定" onclick="form1.action.value='A';alert(form1.action.value)" id=submit1 name=submit1>
</form>
解决方案 »
- 请教JavaScrip在FireFox中的以下区别
- 想提示完了,当点击确定的时候,可以回到某个页面
- 请教:字符串插入和修改颜色
- submit提交问题
- js小问题,帮帮我,在线等,解决即刻结贴
- 请问innerHTML怎样可以实现javascript的src的效果?
- 正则表达有个bug,请高手指教!!
- 正则里面的[ \f\n\r\t\v]怎样理解,有没实例呢??
- 主页面里有iframe,然后主页有按钮提交iframe的form,如何让iframe的from提交时执行一段javascript代码
- 求百度地图自动缩放到2个点都能显示的代码,谢谢
- 甘特图对象的JavaScript实现
- 救命啊~~打雷了,下雨收衣服啊!!!--请大家都来参与
<input type="submit" value="确定" onclick="form1.action.value='A'"> id=submit1 name=submit1>你所谓的带alert() 功能是什么意思啊?
onclick="alert('????????')"
是不是这样啊?
name:<input name=username>
<input style="display:none" name=action>
<input type="submit" value="确定" onclick="form1.action.value='A';" id=submit1 name=submit1>
</form><script>
function check(theForm){
if(theForm.username.value==""){
alert("名字不能为空");
theForm.username.select();
return false;
}
return true;
}
</script>
<input type="submit" value="确定" onclick="form1.action.value='A'">
<input type="submit" value="删除" onclick="form1.action.value='D'">
如果我只想在点击确定时触发alert,应该怎么办??
<input type="submit" name="sure" value="确定" onclick="form1.action.value='A'">
<input type="submit" name="del" value="删除" onclick="form1.action.value='D'">
<script for="sure" event="onClick" Language="javascript">
alert("名字不能为空");
</script>
function xb()
{
alert("form1.action.value")
}
</script>
<input style="display:none" name=action>
<input type="submit" value="确定" onclick="form1.action.value='A'","xb()">
<input type="submit" value="删除" onclick="form1.action.value='D'">
<input style="display:none" name=action>
<input type="submit" name="sure" value="确定" onclick="form1.action.value='A'">
<input type="submit" name="del" value="删除" onclick="form1.action.value='D'">
<script for="sure" event="onClick" Language="vbscript">
msgBox "你按了确定按钮!"
</script>