<script>
var wh=""
</script>
<input onfocus="wh=this.name" name=a>
<input onfocus="wh=this.name" name=b>
<input type=button onclick="alert(wh)">
var wh=""
</script>
<input onfocus="wh=this.name" name=a>
<input onfocus="wh=this.name" name=b>
<input type=button onclick="alert(wh)">
解决方案 »
- 如何从动态生成的 div 里面读取 radio button 的值
- 关于定时器的一个怪问题!
- 如何修改样式
- 能否在javascript脚本中实现javascript脚本文件的调入?
- 怎么解决引用外部文件超时的问题?
- js验证问题
- 菜鸟提问,送分的
- var WshShell =new ActiveXObject("WScript.Shell"); 怎么创建对象出错???
- 真可惜:GOOGLE.COM不能用了
- 我在17" 1152*864机上开发的页面,到了15" 800*600的机上怎么效果不对!
- html中如何正确调用ActiveX,数字签名?谢谢呀
- 是否用window.open打开的窗口,不论ie为何版本都可以无提示关闭?
var wh=""
</script>
<input onfocus="wh=this.name" name=a>
<input onfocus="wh=this.name" name=b>
<input type=button onclick="xxx.innerText=wh" value="看在哪" UNSELECTABLE="On">
<div id=xxx></div>