Create Confirm Password Dialog in User macro for Confluence

Hi!

I create a User Macro in style “show-if” for Confluence Server. I want to make Confirm password dialog on click Button.

Help! How to implement it?