Programming a pop-up contact form

I am trying to understand how to program a pop-up contact form. I usually open a contact form under a separate tab or on the same page where I use the back arrow to get back to that page.

I have he themeforest wordpress software.

Can you please tell me how the pop-up contact form is programmed to be a layer over the page.