posted 12 years ago
Do you mean to connect to database from JavaScript? If that's the case then yes, you can, but it's not recommended to do so (mostly for security issues). It is a bad practice so it would be better to choose a server side language to establish a connection to db.
Also I think there is a separate subforum for these questions (HTML, CSS and JavaScript).
The quieter you are, the more you are able to hear.