First of all, I should identify the element I’m trying to copy, let’s say a div with the ID info:
This information updates daily.
The next step is to include the source web page as an IFRAME with width and height equal to 0:
<iframe name="thief" width="0" height="0" frameborder="0" src="source.html"></iframe>
The final code should read from the IFRAME and display the content on the destination page, in a specially created div:
This content will be replaced.
// this script will copy the ontent of the 'info' div into the 'thief' div in the destination page
parent.document.all('thief').innerHTML = document.all('info').innerHTML;
Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.
If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.