Jump to content

send screen width


Surfchiller

Recommended Posts

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 by Surfchiller
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...