window.resize is not working in chrome and opera ..how to make it work?
Click on the 'Opera' tools menu in the top left of the screen and use the zoom functionality to resize the content. Alternatively you can use keyboard shortcuts 'Ctrl' + '+' or 'Ctrl' + '–' to increase or decrease the text size.
- Use the default keyboard shortcut Ctrl+Shift+A (Command+Shift+A for Mac) to resize to the next window size in your list. Keep using the shortcut to rotate window sizes. - You can add and remove sizes in the window sizes list.
window.resize()
...however...
window.resizeTo(width, height)
window.resizeBy(x, y)
window.open(...)
it is not resizable by default ...see 4.
window.open()
resizable, you must open it with resizable feature
Example of how to create external window with "resizable" feature:
myExternalWindow = window.open("http://myurl.domain", "myWindowName", "resizable");
myExternalWindow.resizeTo(500,500); //resize window to 500x500
myExternalWindow.resizeBy(-100,-100); //make it smaller relatively => to 400x400
PS: There are also browser extensions that allow window resizing... (Chrome)(Mozilla Firefox)
PS2: Chrome extension API - https://developer.chrome.com/extensions/windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With