开发者

Simple Javascript window opener acting crazy

Look at this script:

<a href="brooklyn.swf" onclick="
  window.open(
    'brooklyn.swf',
    'Start Here: Brooklyn',
    'toolbar=no,menubar=no,resizable=no,width=870,height=650,scrollbars=no'
  );
  return false">
    Launch animated presentation &gt;&gt;
</a>

Can anybody explain why the resizable=no does not work in Safari or Firefox (haven't test开发者_高级运维ed any other browsers)? That is, the window call still be resized.


I think the problem is that you are opening a standalone .swf file in a popup window. Try to make a small HTML page containing the flash file, and use that as a popup.


From Mozilla window.open:

Starting with Firefox 3, secondary windows are always resizable (bug 177838)

It's a design decision, giving the user more control. I assume Safari have made the same decision.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜