Ask coding questions

← Back to all posts
chat
Leroy01010 (246)

how do you add chat into this??

I'M ALLOWED JAVSCRIPT NOW!!!!

still accepting answers

Answered by Coder100 (8395) [earned 5 cycles]
View Answer
Commentshotnewtop
Leroy01010 (246)

is there any other site? @Coder100

Leroy01010 (246)

OK i'll wait for any other response if there isn't a better one in an hour i'll choose yours as an answer @Coder100

Coder100 (8395)

did you find anything else? @Leroy01010

Leroy01010 (246)

nope well that means yours is the answer @Coder100

Coder100 (8395)

@Leroy01010 coolio

Good luck on your website!

JordanDixon1 (352)

@Coder100 He says in a below comment that he wants just HTML and css. (Which is impossible, but still...)

titaniump (3)

This is good, you really don't need a "index.html" for your stuff

Leroy01010 (246)

@titaniump ok what do i need then?

titaniump (3)

@Leroy01010 I was talking about the links, you can do this:

<a href = "link">text</a>

instead of:

<a href = "link/index.html">text</a>
rediar (342)

Javscript and socketio?

Leroy01010 (246)

I NOT ALLOWED TO DO THOSE (sorry for caps) @rediar

rediar (342)

@Leroy01010 then it is impossible, even what coder100's thing uses js. go tell whoever told you cant use those that it aint possible

Leroy01010 (246)

iknow i'll tell my teacher @rediar

lightningrock (101)

@Leroy01010 If you only use html and css then it is bassicaly impossible.

NoNameByProgram (77)

use node. nothing else i know of

fuzzyastrocat (646)

I know that Coder100's answer is accepted, however that uses JS internally. (In the "copy and paste this code" part of the site, it literally says <script type="text/javascript" id="hcb"> ... </script>.) So, if you use it you will probably get counted down on the assignment since it uses JS.

However: Making a (true) chat function with only HTML and CSS is impossible, so you should probably tell your instructor/teacher/whoever gave you the assignment that you cannot add a chat without javascript.

CSharpIsGud (578)

@fuzzyastrocat You might be able to pull it off if you use forms and maybe a templating engine like ejs or something but youd have to refresh the page to get new messages

fuzzyastrocat (646)

@CSharpIsGud And ejs might be considered JS too...

I guess this is why people at the dawn of web decided to have JS lol

CSharpIsGud (578)

@fuzzyastrocat ejs is a js module.

Big Brain Solution: Make a new language that is html, but also a programming language

Leroy01010 (246)

I'am still accepting new answers but coder100's is the best.

Leroy01010 (246)

i'm not allowed to use js.python,node etc. in this project i can only use css and html @k9chelsea2

k9chelsea2 (646)

you van still create something a bit like a chat but it cant be an online chat even then it would include some js

ZDev1 (615)

u need a nodejs and a websocket to make a chat app

Leroy01010 (246)

thank you but no, I am doing this as practise for my HTML,CSS(my teacher told me to make one(i choose it (and i regretted it ))) Lessons
but thank you for wanting to help @ZDev1

ZDev1 (615)

@Leroy01010 haha you can't make a chat app with only regular javascript and html and css...

Leroy01010 (246)

ohh ok :( :( :( :( :( @ZDev1

ZDev1 (615)

@Leroy01010 it is easy
but I don't know any places on the internet...
IMMA POST A TUTORIAL ABOUT HOW TO MAKE A CHAT APP

ZDev1 (615)

@Leroy01010 oh if you are happy I'll make one!

Leroy01010 (246)

YAAYAYAAYAAYAYAYA!!!!!! @ZDev1

Leroy01010 (246)

(in a creepy voice)i saw the repl
now i am watching you

@ZDev1

Leroy01010 (246)

(EVIEL LAUGH)HAHAAHAHAHAHAHAHAHAHAHAHAHA

@ZDev1

ZDev1 (615)

@Leroy01010 can you calm down I have my personal things
and then I'll make it

Coder100 (8395)

You can't if you don't have a backend.