Search code examples
htmlformsfieldaddress-bar

Sending HTML form to address bar


Is it possible to generate a form in html that allows the text that's input to be sent to the address bar?


Solution

  • Sure is, you just make sure the forms METHOD is set to GET:

    <form id="myForm" method="GET">
    //Form Stuff
    </form>
    

    Take a look here for more information