window.parent.[frm_User.ts].value=''到父框架表单-ts'';
window.parent.[uping].innerHTML=''到父框架ID-ts'';
if(parent != this)
alert("有父框架")
else
alert("没有父框架");
//Javascript 在框架之间传递变量
<script language="JavaScript1.2">
function copyValue() {
var name = parent.frames[''rightframe''].document.form2.alias.value;
parent.frames[''leftframe''].document.form1.name.value = name;
}
</script>