a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment
insomniasexx  ·  3918 days ago  ·  link  ·    ·  parent  ·  post: MediaCrush: open-source site for hosting images/audio/video

delta - your explanation wasn't too bad. It looks like you've managed to do things you shouldn't do inside the iFrame. This is fairly common when there are links inside of an iFrame.

SirCmpwn, it's on this page: https://mediacru.sh/about - click direct download link within the right iFrame. It allows you to load the entire MediaCrush site again in the iFrame.

I opened an iFrame in an iFrame in an iFrame in an iFrame. Hehe

Since you (luckily) have access to the content the iFrame is loading, I would add a target="_top" to the links. This will open the link at the top level of all defined framesets. I've never used _top (only _blank) but this seems like what it was meant to be used for. Hypothetically, if the "direct download" link is in the main body, it'll open in that tab still. If it isn't, it'll open in the parent. Let me know how it works out.