在iframe中调用父窗口的js函数 function alert_window(picurl,h_id) { document.parentWindow.parent.msg(picurl,h_id); } //msg()为父窗口定义的函数.