Maria
Maria

Reputation: 41

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 tested any other browsers)? That is, the window call still be resized.

Upvotes: 1

Views: 109

Answers (2)

Paul Calcraft
Paul Calcraft

Reputation: 933

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.

Upvotes: 2

Eric
Eric

Reputation: 97601

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.

Upvotes: 2

Related Questions