Do you know javascript? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Do you know javascript?

I need to go to the page, which in wrote what i want. For example if i click myFirstButton on the next page will be wrote 'this is first button question' and if i click mySecondButton here will be wrote 'this is second button question'

6th Feb 2021, 4:21 PM
rufat saburov
rufat saburov - avatar
2 Respostas
0
So you have 3 html pages right ?
6th Feb 2021, 4:25 PM
Abhay
Abhay - avatar
0
Using button tag in html with onclick attribute will call javascript function that you create to do some task when each button is clicked.you can give an id for each a tag link for later use in jscript code to modify or use in appropriate function when button clicked. <a id="firstpage"></a> In js: var firstp = document.getElementById("firstpage");
6th Feb 2021, 4:55 PM
HBhZ_C
HBhZ_C - avatar