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.
I would be careful with this, though - google have been known to change the way they parse their query strings - maybe in an attempt to stop people from doing this and force them to use their search API?
I changed Serbian names into English but it was doing the same thing but i have founded some codes online and modified it a little bit and this one works it's opening google search for typed term.
Here is the code: