Hi All,
I am toying with the idea of making a GreaseMonkey script, or similar
(depending on how far out of my comfort zone I am willing to venture),
which would translate a page automatically.
In order to trigger that script and pass the correct variable to the
translator, I am looking for a way to extract certain details from the
current page.
One of the pages I am looking at is XHTML, and I am wanting to extract
the "lang" (or maybe the "xml:lang") from the page.
In the source it is shown like this:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"
dir="ltr">
How would I reference that in JavaScript?
Any assistance or references that you may provide would be appreciated.
Luke