Javascript Browser Window resizeBy() Method by pixel

Introduction

Resize the top most browser window with 100px each way.

Works only in IE and Safari:

top.resizeBy(100, 100);

View in separate window

<!DOCTYPE html>
<html>
<body>
<button onclick="resizeWin()">Resize window</button>

<script>
function resizeWin() {//from  w w  w  .  ja va2s. c o m
  top.resizeBy(100, 100);
}
</script>

</body>
</html>



PreviousNext

Related