Surfchiller Posted August 20, 2014 Share Posted August 20, 2014 Hi, I´ve added a smartphone support to my web page menu, but I´m binding my menu to the single sites with iframe. Is there a way to tell my menu the screen width? thanks for help, SurfChiller Link to comment Share on other sites More sharing options...
Jonathanks Posted August 20, 2014 Share Posted August 20, 2014 (edited) . Edited August 20, 2014 by Jonathanks Link to comment Share on other sites More sharing options...
Surfchiller Posted August 20, 2014 Author Share Posted August 20, 2014 (edited) Plz read my post before answering. responsive web design is used to scale sites. My problem is, that my menu is not directly content off the single sites. It is load on top of the sites with an iframe. So I have to tell my menu site, witch width the window of the actual site has. Edited August 20, 2014 by Surfchiller Link to comment Share on other sites More sharing options...
justsomeguy Posted August 20, 2014 Share Posted August 20, 2014 There are properties you can use to get the width of the page:https://www.google.com/search?client=opera&q=javascript+get+page+width&sourceid=opera&ie=UTF-8&oe=UTF-8If that code is running inside the iframe then it's going to get the width of the iframe, not the parent frame. You really limit yourself by using an iframe. If the two pages on are different domains then you will not be able to use Javascript to interact with the two pages. Link to comment Share on other sites More sharing options...
etsted Posted August 20, 2014 Share Posted August 20, 2014 get the properties of the page Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now