I am trying to create a button that will resize the browser window on clicking.From what I've seen this is definitely possible. Using JQuery I have written the following code:
$('.resize').click(function(){
window.resizeTo("300px", "300px");
});
To affect the following html:
<button class="resize">click me</button>
But when clicked, the button does nothing. Any ideas?