+ 1
How to add the result of JavaScript calculations inside my page ?
View my profile there is a code called mass index and the only way to show the result by alert I tried many ways getElement and other ways , Bla bla bla ,just help me I'm noop https://code.sololearn.com/WtEOuu4B3Uce/?ref=app
2 odpowiedzi
+ 1
You are right with getElementById()
then you use the innerText property on the element.
https://code.sololearn.com/WTDyD07EuE3i/?ref=app
https://www.sololearn.com/post/112468/?ref=app
https://code.sololearn.com/WKKkpq0efxai/?ref=app
0
Thanks