frame
<script language=javascript>
  function ShowMsg(msg){
     alert(msg);
  }
</script>其他地方可以调用这个函数就可以了?如window.document.frame1.showmsg("你好");