diff --git a/js/connection.js b/js/connection.js
index ec66f7b..ddcf4cc 100644
--- a/js/connection.js
+++ b/js/connection.js
@@ -27,4 +27,9 @@ function connection(){
.catch(error => {
console.error('Error:', error);
});
-}
\ No newline at end of file
+}
+
+
+document.getElementById("submit-input").addEventListener("submit",(e)=>{
+ connection();
+});
\ No newline at end of file