Skip to content Skip to sidebar Skip to footer

What's An Easy Way To Show A Popover Based On If / If Else Statements?

I'm using the javascript on my site seen on the link below. It determines if the user 1. has already allowed our Facebook app and is logged in, 2. hasn't allowed our application bu

Solution 1:

You can do this easily with just CSS. Create a div at body level, and set to position: absolute and width and height 100% and another inner div as the alert message with your own dimensions. Then you can show or hide the custom message with a simple display: none or display: block from JavaScript.

Demo:http://codepen.io/elclanrs/full/rGoha

Post a Comment for "What's An Easy Way To Show A Popover Based On If / If Else Statements?"