puter.ui.setWindowSize()
GUIAllows the user to dynamically set the width and height of the window.
puter.ui.setWindowSize(width, height)
width
(Float)
The new width for this window. Must be a positive number. Minimum width is 200px, if a value less than 200 is provided, the width will be set to 200px.
height
(Float)
The new height for this window. Must be a positive number. Minimum height is 200px, if a value less than 200 is provided, the height will be set to 200px.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
// sets the width and height of the window to 800px x 600px
puter.ui.setWindowSize(800, 600);
</script>
</body>