<input type="button" value="选择" οnclick="sendidname_to_linkmanList('<s:property value="#customer.customerid"/>','<s:property value="#customer.customerName"/>')">
function sendidname_to_linkmanList(customerid,customername){
//获得添加页面的window对象
var win = window.opener;
//获得添加页面的document对象
var doc = win.document;
doc.getElementById("linkman_cust_id").value=customerid;
doc.getElementById("linkmane_cust_name").value=customername;
}
注意:这里用input时必要要用.value()=customerid 不能使用 document.getElementById("p1").innerHTML="New text!";