How can i change the size of an iframe from inside?
问题 I'm developing with jquery and I stumbled with the next problem: I added an IFrame inside the main page and I want to re size them from inside. I tried some ideas but without success. Here is my code: index.html <html> <head> <title>Index</title> </head> <body> <iframe id="myframe" src="frame.html" width="100px" height="100px"></frame> </body> </html> frame.html <html> <head> <title>IFrame</title> <script> document.width = 500; document.height = 500; </script> </head> <body> <h2>My IFrame</h2