In the browser console I get the following error when I hit the button. The function that accesses when giving click is responsible for not allowing a created window to be re-dimensioned. Can someone tell me what the syntax error is?
function createWindow(src, width, height){
var win = window.open(src, "_new", "width="+width+,"height="+height);
win.addEventListener("resize", function(){
console.log("Resized");
win.resizeTo(width, height);
});
}
<button onclick="createWindow('about:blank', 450, 250)">Crear ventana</button>