サブウィンドウ内のアクションで、メインウィンドウ(親ウィンドウ)を操作するスクリプトです。 (例:サブウィンドウ内のリンクでメインウィンドウ内のページを切りかえる) メインウィンドウのソース <html> <head> <title>TAG index Webサイト</title> <script type="text/javascript"> <!-- // サブウィンドウを開く処理 function disp(url){ window.open(url, "window_name", "width=250,height=350,scrollbars=yes,resizable=yes,status=yes"); } // --> </script> </head> <body> <p><a href="example_sub8.html" target="window_name" on
![JavaScript/ウィンドウ/サブからメインウィンドウを操作する - TAG index](https://cdn-ak-scissors.b.st-hatena.com/image/square/4f9442d6a13ed8b2d2bf932784e7d4613227a381/height=288;version=1;width=512/https%3A%2F%2Fwww.tagindex.com%2Fimage%2Fogp%2Fjavascript.png)