Answers for "javascript change window size"

5

check window resize javascript

window.addEventListener("resize", () => {
		// CODE
});
Posted by: Guest on June-03-2020
1

how to change size of the window

To resize browser window 
-I would create object of dimensions class
Dimension newD = new Dimension(480,620)
-Than I resize the current window to the given dimension
driver.manage().window().setSize(newD)
Posted by: Guest on December-05-2020

Code answers related to "javascript change window size"

Code answers related to "Javascript"

Browse Popular Code Answers by Language