I know there are many scripts out there and I tried all of them but i always get stuck on one or more issues. Can somebody please give me a nice overlay script which I can click on the words "Privacy Policy" and it opens a nice overlay covering the entire page even when you scroll down or up, with a smooth transition like in jquery and then when I click on anywhere on the page, it closes it back up?
You might be interested by fancyBox. It is a plugin and has a lot of options to change its behaviour and style.
Too complicated. Couldnt actually figure out. All I need is when you click on a link it will open the overlay with an html content and when you click anywhere it will close it. That is all.
Then go with simple vanilla JS , what your asking fore doesn't take more then 10 lines of code or 4 lines of jQuery if vanilla is to hard for you.
Where is the overlay code I am looking for? There are so many things on vanilla JS website. I am not good with coding that is why I was asking for the specific and simple code so i can just copy and paste
Also just for future reference for the people who will be looking for the same thing. http://vast-eng.github.io/jquery-popup-overlay/ I found this to be the best and easiest.