It is advisable to avoid JavaScript, but if you need to put it to use, you have to embed it while using SCRIPT element.
Ọ kacha mma iji zere JavaScript, ma ọ bụrụ na ị ga-eji ya, ị kwesịrị itinye ya na ihe SCRIPT.