Please help me with this .
My problem is that – I am trying to build a language recognization tool for my blog .
I am currently weak in js so finding difficulties.
All i have to do is put a text box and ask user to input the language to detect . Then I have to pass the user input into the url , ie q=”input from text box”
https://www.googleapis.com/language/translate/v2/detect?key=123&q=“input from text box”
please help.
What shoul i do with window.open() so that this happens?
<input type="text" id="lang" />window.open('https://www.googleapis.com/language/translate/v2/detect?key=123&q='+document.getElementById('lang').value);