Click here to Skip to main content
12,889,448 members (51,054 online)
Rate this:
Please Sign up or sign in to vote.
See more: HTML
hello all,
Can anyone show how to translate a language from english to german by clicking germen in the dropdown lists....
pls show how it works for a simple login page.....

.html file:
<!doctype html>
<script type="text/javascript" src="e.js"></script>
<div id="logform">
		<dl> <dt><label id="username">Login</label>
			<input type="text"  name="loginName" value=""></dt>
		<input type="password" id="password" name="loginPass" value=""></dt>
		<dt><select ><option>English</option>
		<option  önClick="tran();">German</option>

.js file:
function tran(){
var str=document.getElementById("logform").innerHTML; 
var n=str.replace("Password","Kennwort");

i done only for changing password.... but its not working.... can anyone help me
Posted 25-Sep-12 1:52am
Updated 25-Sep-12 2:18am
Legor 25-Sep-12 7:58am
It's called German. If you yourself doesnt even know how the language is called your trying to translate to ... do you really think you can write a program which can do this?
GowthamVenkatesan 25-Sep-12 8:16am
sorry... typed by mistake

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100