Validating html with external javascript file

changed that into apr , still not working:(

How are you calling it?
In the code you posted, it is not being called at all.

do you mean in my html ?

Hi,

I mean in your JS.
You need to be attaching some kind of event handler.