homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
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

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved