<script> window.parent.my_fn(); </script>;
在PHP中输出:
echo <<<EOF <script> window.parent.my_fn(); </script>; EOF;