I am tring to retrieve the language value of my page, FR for French or ENG for English.
I am using document.getElementById("contentzone").innerHTML;
to retrieve my data
Unfortunatly the html element lang is always=en, that's why I have to find an other way...
that returns
<span style="display: none;">IE BUMPER</span>
<script type="text/javascript" src="/jquery.tools.min.jsdbx?FRv=03-10-2015_0442"></script>
How I can retrieve the src url? (/jquery.tools.min.jsbx?FRv=03-10-2015_0442) I have to retrieve "FR" which is the current language of my user, after I can parse the data and just get FR.
I've an other element on my page which displays the current language.
The html page structure is:
<html class="ltr chrome" lang="en">
<head> </head>
<body>
<div class="my_site_layout">
<div id="topzone">
<div id ="conn-infos">
<form class="conn-infos">
<div class="login">
FR
How I can access to this data (the string equal to FR) in Javascript? Because I think my first method with document.getElementByID
to retrieve the name script is dirty.