急等!!!!!!!!!! 我想通过点击按钮,弹出一个帮助页面,在帮助页面中,可以进行多选.然后把这些多选的值返回到按钮所在页面的文本框,并且这多个值之间要有隔字符隔开.如何实现,在线等,谢了. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 a.html<input type="text" id="checkValue" > <input type="button" onclick="openSubWindow();" value="Open Help Window"><script type="text/javascript"> function getSubWindowCheckValue(checkValue) { document.getElementById('checkValue').value = checkValue; } function openSubWindow() { var newWin = window.open("b.html", "newWindow"); }</script> b.html 帮助页面<form name="form1">1: <input type="checkbox" name="score" value="1"><br/>2: <input type="checkbox" name="score" value="2"><br/>3: <input type="checkbox" name="score" value="3"><br/><input type="button" onclick="sendValueToOpener();" value=" O K "> </form><script type="text/javascript"> function sendValueToOpener() { var checkValue = ''; for (var i = 0; i < document.form1.score.length; i++) { if (document.form1.score[i].checked) { if ( checkValue != '' ) checkValue += ',' + document.form1.score[i].value; else checkValue = document.form1.score[i].value; } } if ( checkValue == '' ) return false; opener.getSubWindowCheckValue(checkValue); self.close();} </script> 求JS入门视频 急急急 extJS 表单数据加载报错 请教有关JS冲突的问题! JS老问题:缺少对象 上下滑动菜单,求思路 一个网络攻防的题,要编程序,有兴趣的可以去看看,我贴出地址哈!! 我的javascript怎么了? 我如何把window.opener.document.all设成我自己的对象名称? 关于javascript的几个问题?(请大家帮忙) 做了个图片平滑轮播,但是滚动速度越来越快,求解 密码框问题 这个问题能用js实现吗??
<input type="button" onclick="openSubWindow();" value="Open Help Window"><script type="text/javascript">
function getSubWindowCheckValue(checkValue)
{
document.getElementById('checkValue').value = checkValue;
}
function openSubWindow()
{
var newWin = window.open("b.html", "newWindow");
}
</script>
b.html 帮助页面<form name="form1">
1: <input type="checkbox" name="score" value="1"><br/>
2: <input type="checkbox" name="score" value="2"><br/>
3: <input type="checkbox" name="score" value="3"><br/>
<input type="button" onclick="sendValueToOpener();" value=" O K ">
</form>
<script type="text/javascript">
function sendValueToOpener()
{
var checkValue = '';
for (var i = 0; i < document.form1.score.length; i++)
{
if (document.form1.score[i].checked)
{
if ( checkValue != '' ) checkValue += ',' + document.form1.score[i].value;
else checkValue = document.form1.score[i].value;
}
} if ( checkValue == '' ) return false;
opener.getSubWindowCheckValue(checkValue);
self.close();
}
</script>