Hi,
I try to load a javascript file onclick and getting this error:
MIME-Typ-Konfliktes (“text/plain”) blockiert (X-Content-Type-Options: nosniff).
Then I have looked into my public folder and there is no js file. I have my file under: assets/js/myfile.js
I want to include it onclick 
With these fragments of information, is impossible to help you. If you are asking how to load a JS file at runtime – that’s beyond Hugo’s job.
Check out where in your website the file is located and make sure that your code refers to that location. If you want it to be cord automatically to your public folder, store it in static, not in assets.
Thanks.. now I get the file (in the static folder)
I am trying to do a cookie pop-up with googels recaptcha. And If the user hits the accept button he/she can fill out a contact form. But I am at the beginning and not sure, how to do that.