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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -