For question2, my link control in pageB is <asp:HyperLink .../> , could not use onclick() event.
解决方案 »
- ExtJs求助,返回复杂json对象,如何解析
- JS数组移除元素
- 我想要把主页面的参数传给新打开的页面,请问应该则么作?请高手指教
- 河北工业大学首页的天气导航条是怎么做的?
- JavaScript中传参数问题,急!
- js如何取得对象变量的值?帮忙看看这个例子。
- js控制 div 根据浏览器大小来调整 求实例
- 如何得到客户分辨率的大小?
- 如何判断在页面内存在某个元素?
- 我用netscape 和 mozilla 和ie .不同的三种浏览器。怎样才能让打开的窗体对父窗体返回数据。
- 求<tag>aaa</tag>sdfs<tag>bbb</tag>提取aaa和bbb到数组的正则表达式
- 请教,关于js控制页面数据导入excel
<label><input type="radio" id="r_1" onclick="return SelectTab('tab_1');" name="srhType" value="EXACT" />Exact</label>
<label><input type="radio" id="r_2" onclick="return SelectTab('tab_2');" name="srhType" value="ALL" />All</label>
<script>
var bln = true
function SelectTab(x)
{
r_1.checked=bln
bln=!bln
}
</script>
Q2:<body onload="self.focus()">
BTW: more than radios should be the same name attribute
var bln = true
function SelectTab(x)
{
r_1.checked=bln
bln=!bln
}
</script>in the code ,i just handle the first radio ,other radio is just like the first
<label><input type="radio" id="r_2" onclick="return SelectTab('tab_2',this);" name="srhType" value="ALL" />All</label>
<script>
r_11 = r_21 = true
function SelectTab(x,o)
{
eval(o.id + ".checked=" + o.id + "1")
eval(o.id + "1=!" + o.id + "1")
}
</script>
<label><input type="radio" id="r_2" onclick="return SelectTab('tab_2');" name="srhType" value="ALL" />All</label>
<script>
r_11 = r_21 = true
function SelectTab(x)
{
eval(event.srcElement.id + ".checked=" + event.srcElement.id + "1")
eval(event.srcElement.id + "1=!" + event.srcElement.id + "1")
}
</script>
to onclick="SelectTab('tab_1');" Get rid of the "return" works well.Thanks net_lover(【孟子E章】) !