a.htm<input type="text" name="ParText">
<input type="button" value="Get" onclick="getValue()">
<iframe src="b.htm" name="in"></iframe>
<script>
function getValue()
{
    document.all.ParText.value = top.frames["in"].document.all.SonText.value;
}
</script>b.htm<input type="text" name="SonText" value="baobao">