javascript - Width of page in iframe -


i have parent page , inside parent page, there iframe around half size of parent page.

the javascript in iframed page supposed size of iframed page , set size of text input, both javascript's document.body.clientwidth , jquery's $(document).width() returning parent page's width.

how width of iframed page scripts inside iframe (that is, without having send iframe width parent page iframe page querystrings)? cross-domain too.

simply use -

<iframe src="demo_iframe.htm" width="200" height="200"></iframe> 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -