如何通过Esc键退出全屏iframe,使其恢复到原始大小。请为我提供JavaScript代码,因为在HTML页面中jquery无法工作。
以下是全屏iframe的代码:
<iframe name='myiframe2' id='frame2' src=http://stackoverflow.com' style='position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:999' frameborder='no'></iframe>