Visit Mozilla.org

DOM:window.resizeBy

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Resizes the current window by a certain amount.

[edit] Syntax

window.resizeBy(xDelta, yDelta) 

[edit] Parameters

  • xDelta is the number of pixels to grow the window horizontally.
  • yDelta is the number of pixels to grow the window vertically.

[edit] Example

// shrink the window 
window.resizeBy(-200, -200);

[edit] Notes

This method resizes the window relative to its current size. To resize the window in absolute terms, use window.resizeTo.

[edit] Specification

DOM Level 0. Not part of specification.