Jump to content

Getting the URL of an IFrame within a 3rd party page - with javascript!


Recommended Posts

Ok, let me draw up a scenario for you guys :)

 

My site's code: lala.com

<html><body>
  <iframe src="lol.com"></iframe>
</body></html>

 

lol.com's code:

<html><body>
  <iframe src="random url"></iframe>
</body></html>

 

from lala.com I want to get lol.com's random url from their iframe.. I DO NOT WANT TO MODIFY THE DOM. BUT IF I MUST ITS OK :P

 

I know that frames[0][0].location WILL WORK in internet explorer, but not in any other browser..

 

I need a cross browser solution, this feature is instrumental and needs immediate attention :). THANKS!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.