Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Breaking all links out of iframe

without modifying each link



5:51 am on Oct 15, 2004 (gmt 0)

10+ Year Member

Does anyone have a tip on how to do this?
The page I want loaded into the iframe is not my own page and I cannot change the links.
I did a search of the forums but could not find a solution, thanks in advance.


9:09 am on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

This would be called 'screenscraping' and in most circumstances can get you into trouble. You need to be sure that you have some kind of right to that content - either 'fair use', which is really, really shaky, or else explicit permission from the content owner. You'll need to learn some advanced scripting to pull it off. Google 'screenscraping tutorial' + your favorite scripting language to learn more.


9:45 am on Oct 15, 2004 (gmt 0)

10+ Year Member

I'm not trying to steal anyone's content, I'm trying something on a page I use personally - specifically, opening several search engines in one page.
If I remember correctly, screenscraping involves modifying the external page (maybe wrong); is there no way I can control from my own page the location of the links clicked in the iframe?


11:05 am on Oct 15, 2004 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

If I understand you correctly, you might be able to use javascript and assign the document.base object of the framed file. If that doesn't work I don't think anything else will.



5:36 am on Oct 31, 2004 (gmt 0)

10+ Year Member

Sorry for the delay in replying.
I didn't realise it was so involved to do something like this, but thanks for that tip, I'll have a look into it.

Featured Threads

Hot Threads This Week

Hot Threads This Month