Javascript examples for DOM HTML Element:IFrame
IFrame height Property - Change the height and width of an iframe:
<!DOCTYPE html> <html> <body> <iframe id="myFrame" src="/default.asp" height="200" width="250"></iframe> <button onclick="myFunction()">Test</button> <script> function myFunction() {/* w w w . j a v a 2 s .c o m*/ document.getElementById("myFrame").height = "400"; document.getElementById("myFrame").width = "400"; } </script> </body> </html>