SentinelSixSpy SentinelSixSpy - 1 year ago 56
HTML Question

Display popup if icon is clicked in HTML/JS

I want to make the

display a popup when it is clicked. The
. I can't use
because it displays the checkbox, "Prevent this popup from being displayed on this webpage". This will not work for what I am trying to do. So I need to create a modal popup or something with a "Yes" or "OK" to confirm and a "Cancel" or "No" to deny when the icon icon is clicked.

Sam Sam
Answer Source

What you can do is, create a <div id = ..... class= ....> and assign style="display:none;" inside the <div> create a table or just a message or whatever you like to display and create a Yes, No, Close button.

Write a function, and onclick of the button enable the <div> with style.display = "block";

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download