onClick function in JS file?

That is a really nice solution. Thank you.

Good to learn something new.