http://10.0.0.8/index.asp中:
<input name="china">
<iframe src="http://10.200.0.5/tem.asp" id='iii' onload="document.all('china').value=document.frames['iii'].getValue()"/>
http://10.200.0.5/tem.asp中
<script>
function getValue(){return 'xx'}
</script>
调试欢乐多
function getValue(){return 'xx'}
中的 xx 替换成 <%=variable%>之类的东西
<td id="test">123</td>
<td><iframe src=2.asp></iframe></td>
2.asp
<script>
function get(){
parent.document.getElementById("test").innerText='456';
}
</script>
<body onload='get()'>
但是如果用XMLHttp拿回来就行。如果不用XMLHttp,来回几个圈,也可以实现。