62,046
社区成员
发帖
与我相关
我的任务
分享
//A页面
<script language="javascript">
function dobackkh(bh,mc,lxr,sj)
{
document.all["kh_bh"].value = bh;
document.all["kh_mc"].value = mc;
document.all["lxr"].value = lxr;
document.all["lxfs"].value = sj;
}
</script>
//B页面
<script language="javascript">
function chooseoneitem()
{
var el = window.event.srcElement;
while ((el != null) && (el.tagName != "TD"))
{
el = el.parentElement;
}
if(el.children["khxyd"].value=="A")
{
alert("风险提示:该客户的信誉度为A!");
}
if (window.opener != null)
{
//给A页面dobackkh()函数传值 然后关闭B页面
window.opener.dobackkh(el.children["bh"].value,el.children["mc"].value,el.children["lxr"].value,el.children["sj"].value);
window.close();
}
else
{
window.alert("");
}
}
</script>
点击XX调用 chooseoneitem()函数