This question already has an answer here:
Javascript's `window.resizeTo` isn't working
(1 answer)
Closed 7 years ago.
I am trying to call window.resizeTo but it is not working. I read somewhere that window.resizeTo will not work until window.open is called. Can I resize the window without calling window.open using jQuery?
As you say, you cannot resize windows which you didn't create using window.open. It is not possible in modern browsers, whether you use jQuery or not.
Related
This question already has answers here:
Javascript Bring window to front if already open in window.open?
(8 answers)
Closed 5 years ago.
I got a javascript that fills in the modal html. I would like after that to maximize the window if it is minimized or to focus that tab if it is maximized and not focused.
Anybody knows how to do it?
Note: I'd like it to also work in older IE if possible if not I am pleased with the new one also
Thank you all!
window.open("https://www.google.com");
This will open a new window and you can change the url to suit your needs
This question already has answers here:
Making a window pop under in chrome
(8 answers)
Closed 7 years ago.
I want to open a pop-under window on click, but I want to open it behind the current window.
I google this and found nothing useful about my problem.
Is there a way to do it?
Perhaps a simple path setting is what you need. Use this within a javascript sequence:
path = window.document.URL;
window.open(path,"_self");
This question already has answers here:
Use Browser Search (Ctrl+F) through a button in website?
(3 answers)
Closed 9 years ago.
Does javascript allow for to trigger a "find" action with a keyword on the current page?
No, there's no cross-browser way to do this. (I don't even know of one browser that exposes that functionality.)
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Can jQuery change $(window).width()?
In jQuery, I can retrieve the value of the browser with $(window).width();
Can I modify it's value?
Cheers.
You can try to resize browser window with window.resizeTo(x,y) or window.resizeBy(x,y) . Nowadays, this only applies to windows that are opened programmatically.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How do I get the size of the browser window using Prototype.js?
What is the function to use to get the browser size with prototype js framework?
var viewport = document.viewport.getDimensions();
See the API docs.