页面间文本框值的传递

来源:百度知道 编辑:UC知道 时间:2024/05/23 17:43:06
在 页面1 点击某个连接后跳出 页面2 然后在页面2点某按钮后,如果把页面2某个文本框的值赋给 页面1 的某个文本框

a.asp

-------------------------------------------
<script language="javascript">

function openstr()
{
ReturnValue=window.showModalDialog("b.asp",window,"dialogWidth=510px;dialogHeight=150px;status=no");
if(ReturnValue && ReturnValue!="")
{
oOption = document.createElement('OPTION');
oOption.text=ReturnValue;
oOption.value=ReturnValue;
document.all.txtselect.add(oOption);
}
}

</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta htt