window.frames['itemFrame'].yourElement;

解决方案 »

  1.   

    也试过,也不行,
    第一行是能抓到的,innerText也能抓到,第二行同名行就是抓不到;你既然是用JSP做的网页,还不如生成
    <tr id="userprofilesgrp0">
    <tr id="userprofilesgrp1">
    <tr id="userprofilesgrp2">
    这样的不同名称的行,然后javascript用
    var i=1;
    var b = frames(0).document.getElementById("userprofilesgrp"+i).cells[0].innerText;
    这样也就实现了,省得再想那么多。
      

  2.   

    经尝试,还是可以的:<input type="button" value="check" name="tmp" onClick="var b =frames(0).document.all.userprofilesgrp[1].cells[0].innerText;alert(b);">
      

  3.   

    to qiqunet(瑞旗·广东)总是提示:docuemnt.all.userprofilesgrp.0.cells为空阿把你的代码贴上来看看
      

  4.   

    to qiqunet(瑞旗·广东)我发现了:原来只有一条记录的时候才会出错,因为这是没有数组;
    多条记录是就没有错误拉!谢谢大家参与!!