Skip to main content
Inspiring
February 16, 2023
Question

Adding a pop up to a HTML5 canvas

  • February 16, 2023
  • 1 reply
  • 1414 views

Hello.

 

Looking for some advice please?

 

I need to create a web banner which has a line of copy. When the viewer clicks on the copy, a pop up/overlay of copy will appear with a message. When the viewer has read it, they will click a cross to close the overlay/pop up. I also need to add a click tag to the file.

 

Is the above possible? Any advice/tutorials would be great appreciated.

This topic has been closed for replies.

1 reply

kglad
Adobe Expert
February 16, 2023

this.yourcopy.addEventListener("click",f);

function f(){

window.open("https://adobe.com","_top","left=100,top=100,width=320,height=320");

}

Inspiring
February 16, 2023

Thank you for replying. I think I need more hand-holding...

kglad
Adobe Expert
February 16, 2023

I don't think so.

Sorry for any confusion.

Basically, I want to create a popup window with a close button. The viewer clicks on a line of copy, the pop up window appears. When the viewer has read the copy in the pop up window, they click a button to close it.


the popup is a browser popup and includes a close button.  

 

do you actually want something else? eg, a pseudo popup consisting of a movieclip, for example.