Hey guys I'm new in Java Script and I'm having some problem.I'm trying to do create one text field where i should type some text and next to it a submit button and when i type something in text field and press submit button a google search for that term should open.
I tried some code and it is opening google but it is not opening google search for the term that i typed in text field it only opens google homepage.

<form name="search" action="https://www.google.rs/" method="get">
Претрага:<input type="text" name="Унос">
<input type="submit" value="Претражи">
can somebody tell me where is a mistake in my code because i tried many codes and this one is closest to my goal so far.
Best regards