opener.document.getElementById("posteditor_textarea").value="asdfasd"

解决方案 »

  1.   

    我这样写的,可是没反应啊<a href=# onclick="opener.document.getElementById("posteditor_textarea").value="asdfasd"">添加</a>
    什么提示都没有
      

  2.   

    <a href=# onclick="opener.document.getElementById('posteditor_textarea').value="asdfasd"">添加 </a> 
    引号冲突了。
      

  3.   

    <a href=# onclick="opener.document.getElementById('posteditor_textarea').value='asdfasd'">添加 </a> 
      

  4.   

    <a href=# onclick="opener.document.getElementById('posteditor_textarea').value+='asdfasd'">添加  </a>