サンプル <script language=javascript> function ViewUrl(){ alert(test.document.location.href); } </script> ボタンを押して、表示させる例 <input type="button" name="ifUrl" value="URL" onClick="ViewUrl()"> IFRAMEのサンプル <IFRAME id=test src="sample.htm" name="IE" width="800" height="600" frameborder="1"> これで、ボタンを、押すと、iframeのurlを表示する。
![インラインフレームで表示されているページのURLを取得したいのですがどうしたらよいのでしょう? - サンプル<scriptl... - Yahoo!知恵袋](https://cdn-ak-scissors.b.st-hatena.com/image/square/1d07bee2b75b182ba712690f3a3464c29972e28b/height=288;version=1;width=512/https%3A%2F%2Fs.yimg.jp%2Fimages%2Fks%2Fclap%2Fimage%2Fogp%2Fogp.png)