adspace
code to positioning of window in certain dimensions
Answer Posted / Tapesh Kumar Singh
To position a window to specific dimensions, you can use JavaScript's `window.moveTo()` and `window.resizeBy()` methods. Here's an example:nn```javascriptnconst x = 10;nconst y = 20;nconst width = 800;nconst height = 600;nn// Move the window to specific coordinatesnwindow.moveTo(x, y);nn// Resize the windownwindow.resizeBy(width - screen.width, height - screen.height);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers