Randy Posted August 2, 2006 Share Posted August 2, 2006 I was wondering how I would get the current url of an iframe, I have searched on google but all to no avail. Quote Link to comment Share on other sites More sharing options...
nogray Posted August 2, 2006 Share Posted August 2, 2006 let's say the iframe id is "frm" you can access the URL by[code]document.getElementById('frm').contentWindow.location.href[/code]This only works if all the pages are on the same domain. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.