| | |
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
Views: 1585 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxcode ajaxhelp animate array automatically autoplay beta boarder box bug button calendar captcha card cart codes column cookies createrange() css cursor date debugger decimal design developer dom download dropdown element enter error events firefox firehose flash focus form frameworks getselection google gwt html htmlform iframe image() images index java javascript javascripts jawascriptruntimeerror jquery jsp listbox maps marquee masterpage menu microsoft mimic mp3 mp4 offline onmouseover parameters php player post problem programming prototype rating redirect regex safari scale scriptlets search select size sources sql starrating text textarea toggle twitter validation variables w3c web website window windowofwords windowsxp xml xspf





