admin管理员组

文章数量:1315940

I have the following code for a javascript pop-up window that embeds a youtube video on my website.

<script language="JavaScript"> function openAndroid22Window()
 {
   NewWindow=window.open("/php/video_demo_frame.php?
   vid=;width=640&height=510",   
   "awindow","width=668,height=548,scrollbars=yes");
 }
</script>
<li><a href="javascript:openAndroid22Window()">Installation on Android</a></li>

The problem is that in all browsers, except IE, the window can be resized. Why won't it resize /maximize in IE ?

I have the following code for a javascript pop-up window that embeds a youtube video on my website.

<script language="JavaScript"> function openAndroid22Window()
 {
   NewWindow=window.open("http://v4m.mobi/php/video_demo_frame.php?
   vid=http://www.youtube./embed/1-VsX8qMVFo?rel=0&width=640&height=510",   
   "awindow","width=668,height=548,scrollbars=yes");
 }
</script>
<li><a href="javascript:openAndroid22Window()">Installation on Android</a></li>

The problem is that in all browsers, except IE, the window can be resized. Why won't it resize /maximize in IE ?

Share Improve this question asked Apr 18, 2012 at 18:43 DextrousDaveDextrousDave 6,79337 gold badges95 silver badges136 bronze badges 2
  • It's working on ie9, which version did you test it on? – Okan Kocyigit Commented Apr 18, 2012 at 18:52
  • tested in ie9. when I added the resizable=yes, it worked. – DextrousDave Commented Apr 19, 2012 at 15:01
Add a ment  | 

1 Answer 1

Reset to default 8

Add resizable=yes

function openAndroid22Window()
{
       NewWindow=window.open("http://google.", "awindow", "width=668,height=548,scrollbars=yes, resizable=yes");
}

Tested in IE, an example.

本文标签: htmlJavascript new window for video not resizing in IEStack Overflow