javascript - How to increase the height of iframe of container page from the page shown inside it -


i have application shown inside iframe.

<iframe src="http://localhost/xxxxx.aspx"></iframe> 

the height , width of container 900px , 600px. want app in full screen, possible change height , width of container iframe?? p.s iframe not in same project, so

$("iframe").css("height","1000px") 

won't work different file.

specify context in selector should applied:

 $("iframe", window.parent.document).css("height","1000px"); 

here example different files: http://www.css-arts.com/iframe_test/iframe_test.html

browsers blocks access iframes parent when iframe content page domain parent page. if case have no chance.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -