php - Refresh Iframe within Iframe using Javascript -
i have next
2 iframes in 1 page mainwindow.php
<iframe frameborder="0" allowtransparency="true" name="iframea" src="page1.php" width="38%" height="800" seamless></iframe> <iframe frameborder="0" allowtransparency="true" name="iframeb" src="page2.php" width="58%" height="800" seamless></iframe>
page1.php content page
and below code page2.php
<!doctype html> <html lang="en"> <head> <script type="text/javascript"> document.getelementbyid('iframe1').src = document.getelementbyid('iframea').src </script></head> <body> </body> </html>
when page on iframeb alter above javascript code on page lets reload.php, doesn't reload iframea, nil happen, inspect element , no javascript error.
javascript php jquery html iframe
No comments:
Post a Comment