homepage Welcome to WebmasterWorld Guest from 184.72.91.94
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved