Remote Scripting - Moving Object Level Data Across Frames
- Introduction
- Targeting a Hidden iframe
- Moving Data From an iframe to the Parent
- Moving Object Level Data Across Frames
- Adjusting Your History
- Access Denied - Domains, Remote Scripting, and Security
- Targeting a Hidden iframe
- Moving Data From an iframe to the Parent
- Moving Object Level Data Across Frames
- Adjusting Your History
- Access Denied - Domains, Remote Scripting, and Security
for Netscape 6+
Unlike IE, Netscape 6+ will let you move data across frames at the object level. Below is iframe name="myIframe". Its source document contains a div id="copy". Clicking on the link in the iframe will trigger the function cloneIt(). The function is in the iframe page:
<script> // - this is the script from the iframe page function cloneIt() { var x=document.getElementById('copy').cloneNode(true); try { parent.document.getElementById('destination').appendChild(x); } catch (e){ document.getElementById('errorBox').innerHTML=e; } } </script>"destination"
PXL8 2003