| | |
Resize External Website in Iframe using Javascript.
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
If the website loading in the URL has a fixed size then you would have to code something to dig through the iframe and remove the sites fixed width.
But if the sites content is bigger than the frame, there really isnt much you can do besides setting "overflow: hidden" to most of the elements in the iframe.
But if the sites content is bigger than the frame, there really isnt much you can do besides setting "overflow: hidden" to most of the elements in the iframe.
You would have to use javascript and a onload event on the iframe.
(untested)
Something like that might work.
(untested)
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
iframeName.onload=function() { iframeName.style.height = iframe.document.body.innerHeight; };
Something like that might work.
![]() |
Similar Threads
- Remote Scripting Question/Challenge (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: I-frame Scroll Disable While Loading Url
- Next Thread: Javscript framework
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets api autoplay blackjack browser bug captchaformproblem checkbox child class close codes cookies createrange() cursor date debugger dependent developer disablefirebug dom dropdown editor element embed engine events explorer ext file flash form forms game getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jump libcurl maps math matrixcaptcha media mp3 mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming progressbar rated runtime safari scriptlets scroll search security session shopping size software star stars stretch synchronous tweet unicode variables web webkit webservice window wysiwyg \n





