Welcome to WebmasterWorld Guest from 54.146.201.80

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)

New User

joined:June 29, 2011
posts: 1
votes: 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
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members