Forum Moderators: open
A typical example below:
[translate.google.com...]
In the above url example I'm wishing to translate 'agua' to 'water' then return the result 'water' in a js var and not display the G result page. Your help is greatly appreciated.
<div id=result_box dir=ltr>water </div>
If your script would run on that page, you could simply read
document.getElementById('result_box').innerHTML. Problem is that your script does not run on that page, so it cannot access any property. So you'll need a server side script that fetches the Google translated page and that parses the translated text. Might be against Google's TOS...