I am trying to create links from an HTML 5 canvas animation. How can I make a specific image in the canvas also a link?
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Canvas tag doesn’t have link functionality, however you might be able to use javascript coding to manually link to a new page. Just add an onclick event that fires the link.
Also, the canvas won’t know where your image is. So if the image is only taking up part of the canvas, you will need to check the mouse position to make sure the image is being clicked directly.