Iframe size manipulation

Posted by portoalet on Stack Overflow See other posts from Stack Overflow or by portoalet
Published on 2010-05-20T16:47:11Z Indexed on 2010/05/20 16:50 UTC
Read the original article Hit count: 109

Filed under:

Is there a way to make the Iframe request an external website as if it is a mobile device, so the content returned will have a small dimension etc?

I am displaying external websites in iframes, using width and height attributes

<iframe src="http://marketwatch.com" width="300px" height="300px"  ></iframe>

but because the browser is not a mobile browser, the content returned is tailored to normal browser, and I end up having scrollbars.

If the content returned is that for a mobile device, then no more scrollbars etc.

© Stack Overflow or respective owner

Related posts about iframe