I would like to know if there is a way to prevent an html page with jQuery or javascript to be modified by the user to change its behavior.
A user can modify it usin
It's impossible. When you send code to the client, the client can look at it and modify it. Only code that runs on your server is protected aganist that.