i if2.html forsøger jeg så at tilgå table1 vha. window.parent.if1.document.getElementById('table1') men det virker ikke og jeg er i tvivl om man overhovedet kan gøre det.
Den tabel (id=table1) bliver ignoreret ... Hvad du putter mellem <iframe> og </iframe> bliver kun vist/medtaget, hvis browseren ikke understøtter iframe...
Hvis du skal have en tabel i iframen, så skal den være i det html-dokument, som bliver source for iframen....
Taget fra HTML 4.01 specifikationen : The IFRAME element allows authors to insert a frame within a block of text. Inserting an inline frame within a section of text is much like inserting an object via the OBJECT element: they both allow you to insert an HTML document in the middle of another, they may both be aligned with surrounding text, etc.
<<< The information to be inserted inline is designated by the src attribute of this element. The contents of the IFRAME element, on the other hand, should only be displayed by user agents that do not support frames or are configured not to display frames. >>>
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.