I have setup a page where anyone can add their email so that I can contact them.
Currently, the way it is setup, if I add an email and click send, it just takes the user to the top of my site, which is on the same page.
HTML
<section id="signup" class="signup-section">
<div class="container">
<div class="row">
<div class="col-md-10 col-lg-8 mx-auto text-center">
<i class="far fa-paper-plane fa-2x mb-2 text-white"></i>
<h2 class="text-white mb-5">Contact</h2>
<form class="form-inline d-flex">
<input type="email" class="form-control flex-fill mr-0 mr-sm-2 mb-3 mb-sm-0" id="inputEmail" placeholder="Enter email address...">
<button type="submit" class="btn btn-primary mx-auto">Email</button>
</form>
</div>
</div>
</div>
</section>
JS
Vanilla Javascript version of this? No jQuery.
let container = document.getElementById('container');
container.innerHTML = container.innerHTML + '<button class="etmkug-14 SuUwW"><span class="etmkug-16 ctwFJG">Mark All Read</span></button>';
// Is there a way to make all this and have it be able to send info back to me purely with vanilla JS?
NOT A DUPLICATE
Looking for JS equivalent