How do webpage developers get Firefox to use the windows.resize or windows.moveTo javascript functions that seem to now be passed over?
Before V7, this code worked and did as requested every time the page was run. Now, it does not work and no error is reported. Google Chrome and Internet Explorer are able to produce th correct result.
<script type="text/javascript"> window.resizeTo(325,700); window.moveTo(1150,10); </script>
I have a site where I use window.open to create a login window with minimum chrome.
On successful login, the window that created the login window updates itself to another page. The login window is supposed to resize itself and move to create a console panel to the right of the screen.
I have tried to update the window from its parent at the point of successful login (flagged by a database change, checked frequently). I have also included code in the new window itself to resize itself to no avail.
The new code seems to be failing on both the conditions laid out!
Zmodyfikowany przez Peter Lane w dniu
Wszystkie odpowiedzi (3)
Some conditions were added in 7.0 to avoid abuse of the resize and move functions:
- Can't resize a window/tab that hasn't been created by window.open.
- Can't resize a tab if the tab is in a window with more than one tab.
There's still some discussion on the bug - including some solutions and troubleshooting for pages that were affected that shouldn't be - and it's being tracked to make sure it doesn't have any adverse effects.
See this Thread - https://support.mozilla.com/en-US/questions/880032
Check and tell if its working.
Looks like I have found a situation where the issue is not solved.