...
Code Block | ||||
---|---|---|---|---|
| ||||
<head> ... andere Head-Elemente <script type='text/javascript'> function updateIframe() { var loc = window.location.search; iframe = document.getElementById('stattbuchung'); iframe.src = iframe.src +loc; } </script> </head> <body onload="updateIframe()"> <!-- eigener HTML-Code vor dem iFrame --> <iframe id="stattbuchung" src="index.php" width="100%" height="800" scrolling="auto" frameborder="1" title="Termine Stattbuchung" class="wrapper" > Keine IFrames</iframe> <!-- eigener HTML-Code nach dem iFrame --> </body> </html> |
Die Funktion updateIframe() wird im Body mit onload getriggert. Wichtig ist, dass die id 'stattbuchung' im javaScript und im iframe-Tag vorhanden sind.