Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

After upgrade to Firefox 8 on mac the javascript moveTo and resizeTo does not work, how to fix.

  • 1 odpowiedź
  • 24 osoby mają ten problem
  • 2 wyświetlenia
  • Ostatnia odpowiedź od cor-el

more options

simple function shows problem

<button onclick="return(fnBtnMin());">Min</button>

function fnBtnMin() 
{
   alert("Resize this page?");
   moveTo(100,200);
   resizeTo(400,400);
}

Alert show but window does not move or size. Has worked in other version of firefox but stopped in version 8. Safari stills work.

simple function shows problem<br /> <pre><nowiki><button onclick="return(fnBtnMin());">Min</button> function fnBtnMin() { alert("Resize this page?"); moveTo(100,200); resizeTo(400,400); }</nowiki></pre> Alert show but window does not move or size. Has worked in other version of firefox but stopped in version 8. Safari stills work.

Zmodyfikowany przez cor-el w dniu

Wszystkie odpowiedzi (1)

more options

You can't resize the main window. You can only resize windows that are opened via a window.open() call.


  • bug 565541 - Web sites shouldn't be allowed to resize main window (#c24)

(please do not comment in bug reports)