Advertisement
madcatzano

Untitled

Aug 18th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2. var iframes = document.getElementsByTagName("iframe");
  3. for(i = 0; i < iframes.length; ++i)
  4. {
  5. if(iframes[i].id.length > 0 && iframes[i].id.indexOf("aswift") == 0)
  6. {
  7. //alert(iframes[i].id);
  8. var _src = iframes[i].contentWindow.document.body.getElementsByTagName("iframe")[0].src;
  9. alert(_src);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement