puter.ui.setWindowY()GUI


Sets the y position of the window.

Syntax

puter.ui.setWindowY(y)

Parameters

y (Float) (Required)

The new y position for this window.

Examples

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        // sets the position of the window to 200px from the top
        puter.ui.setWindowY(200);
    </script>
</body>