Jump to content

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


RussellReal

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.