Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

resizing windows with a java script, doesn´t work on firefox 7.01

  • 3 replies
  • 13 have this problem
  • 18 views
  • Last reply by linoferreira
  • Solved

I have a macbookpro, 2,53ghz core i5, 4GB RAM, OS 10.6.8,

with firefox 7.01

I loved that feature and the problem only hapened when I updated Firefox.

Thank you for your support Lino

I have a macbookpro, 2,53ghz core i5, 4GB RAM, OS 10.6.8, with firefox 7.01 I loved that feature and the problem only hapened when I updated Firefox. Thank you for your support Lino

Chosen solution

The PrefBar extension has a button to resize the screen.

I use this modified set function to see the current dimensions and change them easily.

if(value == 'PROMPT'){
 value = goPrefBar.msgPrompt(null, 'width x height', window.outerWidth+'x'+window.outerHeight, 'Resize');
}

if(value != null){
 var vA = value.split("x");
 if(vA[0])window.outerWidth = vA[0];
 if(vA[1])window.outerHeight = vA[1];
}
Read this answer in context 👍 1

All Replies (3)

Hello Lino,
In Firefox 7 resizing the main window with javascript is no longer allowed for security reasons. See bug 565541 - Web sites shouldn't be allowed to resize main window
See also:
http://support.mozilla.com/nl/questions/880032
https://support.mozilla.com/nl/questions/881729

Chosen Solution

The PrefBar extension has a button to resize the screen.

I use this modified set function to see the current dimensions and change them easily.

if(value == 'PROMPT'){
 value = goPrefBar.msgPrompt(null, 'width x height', window.outerWidth+'x'+window.outerHeight, 'Resize');
}

if(value != null){
 var vA = value.split("x");
 if(vA[0])window.outerWidth = vA[0];
 if(vA[1])window.outerHeight = vA[1];
}

Although it ads another bar, which I didn't want, its the possible solution.

Thank You