0

How to get SWF url form a webpage using javascript. Actually I want to retrieve all SWF from a webpage, So I wrote an Greasemonkey Script that scans OBJECT, EMBED etc tags to get the swf url. My script works fine on most of the pages, but fails on this one http://www.elkspel.nl/spelletjes/Film+And+TV+spelletjes/Eva+Mendes+Opmaken.html this page is not having any Object, Embed tag in its source and my script fails here.

Is there any way to get SWF Url from any webpage??

2
  • It's got an object in an iframe. Commented May 3, 2011 at 5:14
  • but there is no SWF file URL in source. How to get the SWF url in this iframe? Commented May 3, 2011 at 5:51

1 Answer 1

1

In this case, the object tag is embedded into the page loaded into the iFrame. To get the SWF url manually, just grab the url of the page in the iFrame and open it in a browser. Automating that might be difficult though. You would have to do the same thing via code - grab the url from the iFrame and load the page.

You could also look through the Firebug /Net/Flash/ tab and grab the URLs for any SWFs there.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the reply, but is there any way to know if that specific Iframe tag contains object flash?, as loading each iframe in browser will consume time and bandwidth???

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.