I created a javascript file (.js) for language settings. How can I get value from this file? .
File.
<">" language "
How to set the price for a particular label.
Let me "Eben" instead of "Level" for example.
& lt; Script type = "text / javascript" & gt; Document.getElementById ("lblLevel"). InnerHTML = glossary ["Level"];
& lt; Div class = "level" & gt; & Lt; B id = "lblLevel" & gt; Level & lt; / B & gt; & Lt; / Div & gt; But it is not working any ideas ..?
Thanks in advance.
& lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; Var language = {"language": "german", "glossary": {"level": "eben", "code": "code"}}; Function AB () {document.getElementById ("lblLevel"). InnerHTML = language.glossary.Level; } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body onload = "ab ()" & gt; & Lt; Div class = "level" & gt; & Lt; B id = "lblLevel" & gt; Level & lt; / B & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; @manan Try it is working and testing the code. If you have any other issues then comment again and answer and close the question.
Comments
Post a Comment