JSFiddle - React, Tailwind, and code Playground
by dbelle
HTML
<form>
<b>New Width:</b>
<input type=TEXT name="width" value="myWidth"><br>
<b>New Height:</b>
<input type=TEXT name="height" value="myHeight"><br>
<input type=BUTTON value="Resize Window" class="btnResize">
</form>
JavaScript
$(".btnResize").click(function(){
var myWidth = $("input.inputWidth").val(),
myHeight = $("input.inputHeight").val();
window.resizeTo(myWidth, myHeight);
)};