var botonClick = document.getElementById(":2.close"); botonClick.click();