+ 1
How to only add something to html with js
I made a program that calculates the fibbonacci series until 4000 is reached, but i cant add in the span i made, i only can replace the text https://code.sololearn.com/W9sIJJlLidVq/?ref=app
3 odpowiedzi
+ 4
https://code.sololearn.com/WepAcBz38J4F/#html
+ 4
document.getElementById("body").innerHTML = document.getElementById("body").innerHTML + " " + number;
You need to include the old html with your new one.
0
and how do i make a constantly repeating if loop like this:
function(){
//function
goto function()
}
is this possible?