js学习

一、
window.open()方式返回值

if(window.opener)window.opener.document.getElementById("theTextAreaId").value = value;

二、
retval = window.showModalDialog("check/selectPerson.jsp", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no;status:no; directories:yes;scrollbars:no;Resizable=no; "  );

window.returnValue = text; 
window.close();

你可能感兴趣的:(jsp)