Prevent Spark.function() from redirecting when button is pressed

I’ve been looking into this example:
and was wondering if it is possible to prevent the redirecting to the “response” in the .html file. I just want to stay on the same site website I was on.

Anybody know if this is possible?

This doesn’t really have anything to do with the Particle.function() but only with the HTML code.
If you want to have a nicer client side there, you might want to look into ParticleJS
You can also have a look how these sites are built

And this tutorial (and others by the awesome @bko)
Tutorial: Spark Variable and Function on One Web Page