| | |
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 |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box bug calendar cart checkbox class codes column createrange() css cursor date debugger decimal design dom download dropdown element embed enter error explorer firefox focus form frameworks getselection google gwt hiddenvalue hint html htmlform ie7 iframe images index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 object onmouseover paypal php player position post problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select shopping size software sql text textarea toggle unicode w3c website window windowofwords windowsxp wysiwyg





