Hello friends I have a text input and a button In Input Text, a link is entered, for example, the link of an Instagram post After entering the link, I want to go to the link by clicking the button How do I do this with JavaScript?
<div class="container">
<div class="main">
<input type="text" placeholder="https//:www.instagram.com/..."
id="link">
<button id="button-1"><a href="#">go</a></button>
</div>
</div>