As @MaxZieb says.
You would be better of putting the html in a Rectangle.
It look like to me you are trying to target the Hype function.
You can actually put the code directly in the Hype Head file or the innerHTML
If you do want to keep it in the Hype function then you would need to target it correctly
Any html inside a elements innerHTML is treated like an if
There are Manny threads to show this.
Look at this one
and this which shows how the onclick part works.
Saying all of that, I personally would not use innerHTML to do all of the design ofthis. I would use hype elements. which can easily link to the hype functions and code to target any innerHTML textfield you have.