BobNeo
@BobNeo
I want to make a button in HTML with express that executes a function in node.js.
I tried onclick=“function()” but it wouldn’t execute the function in
SixBeeps The problem with your initial solution is that you're trying to execute server-side code from the client, which is not directly possible. Instead, you should attach some client-side JS with a function that sends an HTTP request to the server at a certain destination. Then, you'd have the button execute this function and reload the page.
Or, better idea, go with an asyncronous approach.3 years ago
This is a simple repl to crash python!
Just enter the way you would like to crash it, and it crashes it!
How does it crash python?
Take a look at the
Python
So basically what I want to do is make a voting system, Inside vs Outside, but I’m pretty new to coding and can’t figure out just how I can store the
HTML, CSS, JS
Baconman321 I had the same problem with PHP, and believe me, it really sucked that I couldn't get it to work. Basically, every single time you access a website, it makes it from scratch. Basically, you call the website with something like https://example.com. The coding doesn't live in the address, but rather that address takes you to that website. Kind of like a house address. The house isn't inside the address, but rather the address specifies where the house is. What you need is a database, which is very3 years ago