I want to overlay an html form when my html5 canvas is double clicked. How would I go about doing this? Thanks!
canvas.ondblclick = myDblClick;
function myDblClick(e) {
//Generate Overlay
}
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.
I’m not going to do it for you, but I am going to tell you where to start.
You must learn about creating HTML elements on the fly (ie
document.createElement('input')) or else creating your form in a div and then hiding it.On the double click you must unhide your form or create your elements, and then position them absolutely over the canvas.