evt) {
        evt.preventDefault();        
        
        const webOrigin = document.getElementById("webOrigin");
        if(isUrlValid(webOrigin.value)) {

            let webor = new URL(webOrigin.value).origin;

            if(webOrigins.includes(webor)) {
                showModalDialog("modal0", "Error", "The web origin is already in the list.");
                return;
            } else {
                webOrigins.push(webor);
                ids.push(0);
                refreshWebOriginsTable()