+ 1
i am not beginner but How to create a button inside a canvasš ( html),and how to publish the site in internet for free?
I couldn't make a button inside canvas,my html page is a game and the whole body is a canvas!
2 Answers
+ 2
1_Draw the button and store its coords, then attach an onclick event callback function on the canvas, then use an if-else if-else statement to check where the click event was triggered and use the right function of the button
2_the best free web hoster in the internet is InfinityFree, you may check it if you want
- 1
Use replit.com for goot hosting