+ 2

How can I add messages to the top instead of adding them to the bottom?

https://code.sololearn.com/We8HqMk4S5QU/?ref=app

3rd Aug 2020, 2:47 PM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar
11 Réponses
+ 4
You can use the listName.unshift("text") tag! Search about it on google
3rd Aug 2020, 3:06 PM
Namit Jain
Namit Jain - avatar
+ 2
Tony Sharma K. K Gaming see my code! It is showing correctly in my code https://code.sololearn.com/Wh6O7N98vyUb/?ref=app
4th Aug 2020, 8:00 AM
Namit Jain
Namit Jain - avatar
+ 1
Namit Jain I don't understand
3rd Aug 2020, 3:08 PM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar
3rd Aug 2020, 3:44 PM
Namit Jain
Namit Jain - avatar
+ 1
Replace last line by document.getElementById("messages").innerHTML = html + document.getElementById("messages").innerHTML
3rd Aug 2020, 4:12 PM
Roopesh
Roopesh - avatar
+ 1
But Tony Sharma K. K Gaming I can't see any messages. Did you deleted everything?
3rd Aug 2020, 4:13 PM
Roopesh
Roopesh - avatar
3rd Aug 2020, 2:49 PM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar
0
Someone no firstly right something
4th Aug 2020, 3:45 AM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar
0
Someone can you tell me right code link
4th Aug 2020, 3:47 AM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar
0
Namit Jain it shows message.unshift is not function
4th Aug 2020, 3:55 AM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar