Use of window.showModalDialog() is deprecated. Use window.open() instead. For more help https://developer.mozilla.org/en-US/docs/Web/API/Window.open
window.showModalDialog() està en desús. Utilitzeu window.open(). Per a més ajuda, visiteu https://developer.mozilla.org/en-US/docs/Web/API/Window.open