父页面:index.html(使用iframe包含子页面child.html) <html> <head> <script type="text/javascript"> <!-- function toshow(msg){ alert("这里是父页面:"+msg); } // --> </script> </head> <body> <iframe background="blue" src="child.html" mce_src="child.html"></iframe> </body> </html> 子页面child.html(调用父页面toshow方法) <html> <head> <script type="text/javascript"> <!-- function doparent(){ window.parent.toshow('ccccchild'); } // --> </script> </head> <body> This is child frame!! <input type="button" value="请点击" οnclick='doparent()'></input> </body> </html>