| use JavaScript to call iframes based on screen size. javascript iframe media query |
jsherman

msg:4332650 | 6:23 pm on Jun 29, 2011 (gmt 0) | Hello I am trying to have java script call html files in an iframe using screen-size media queries. Why?: I have a widget that that is in HTML, but I want to create different sized widgets (already done) in separate HTML files, and then use master HTML file to call the appropriate widget HTML file via a media query as the screen gets larger or smaller. Just like a CSS media query but for an iframe. Any Idea how to do this or what the code might look like? J
|
|