I want to know that is there any method to display Popup when it's allowed in the database without reloading the page means immediate effect.
Sounds like you want to look in the database and if "it's allowed in the database" write some JavaScript into the page when you serve it so that it runs as soon as the page is loaded.
I want to know that code