How do i display this --> ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 10

How do i display this --> ?

Hello to all at sololearn. I'm actually trying to create an HTML webpage on conversion between two languages. So, what i need to do is to create lots of buttons containing words in any one language. On clicking on a word containing button, I need the (same) button to show the translation of that word in the other language. what should I do about this? Any suggestions will be of great help.

12th Mar 2017, 5:04 AM
Rahul George
Rahul George - avatar
5 ответов
+ 2
Basically you need something like this, I guess: <button type="button" onclick="alert('hello');">bonjour</button> It will call JavaScript alert function on click which will show you a dialog box with translation.
12th Mar 2017, 5:18 AM
Ivan G
Ivan G - avatar
+ 10
@Ivan_G it worked! thanks
12th Mar 2017, 5:20 AM
Rahul George
Rahul George - avatar
0
Use jQuery and boostrap
12th Mar 2017, 5:14 AM
Vishal Prajapati
0
<INPUT TYPE="submit" value="(name)" alt="(meaning)" />
6th Jun 2017, 8:36 PM
JASIR MOHAMMED
JASIR MOHAMMED - avatar
- 1
\?
12th Mar 2017, 5:13 AM
Nisha