Hello I am wondering where to start on making websites width node.js. I did the hello world tutorial and have a working http server. But my question is if it is possible to run javascript server-side for lets say an onclick event? of how to put css in the webpage.
Thanks
Mkaveli
Eventhough you have javascript running on your server, events like onClick are still clientside.
Just because the server-side language is javascript doesnt mean you have control over client-side events. If you want actions to happen on the server at an onclick event, consider making the element a regular anchor, or use AJAX to make a call directly to the server.