Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

use JavaScript to call iframes based on screen size.

javascript iframe media query



6:23 pm on Jun 29, 2011 (gmt 0)


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?


Featured Threads

Hot Threads This Week

Hot Threads This Month