Visit Mozilla.org

DOM:window.sizeToContent

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Sizes the window according to its content.

The DOM content should be loaded when this function is called, for example after the DOMContentLoaded event.

[edit] Syntax

window.sizeToContent() 

[edit] Example

window.sizeToContent();

[edit] Specification

DOM Level 0. Not part of any standard.