VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-window-resizeby-method/

⇱ HTML DOM Window resizeBy() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Window resizeBy() Method

Last Updated : 15 Jun, 2023

The resizeBy() method in HTML Window is used to resize a window by the specified amount, relative to its current size. 

Syntax:

resizeBy(width, height)

property value:

  • width: A that specifies the resize pixels of width.
  • height: A that specifies the resize pixels of height.

Example: 

Output: 

Before:

 👁 Image
 

After:

 👁 Image
 

👁 Image
 

Supported Browsers: The browser supported by Window resizeBy() Method are listed below:

  • Google Chrome 1
  • Internet Explorer 4
  • Mozilla Firefox 1
  • Edge 12
  • Opera 12.1
  • Safari 1
Comment