Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey guys ...

I wanted to have one POP-UP window whenever i open my website. The POP-UP window should load some contents with close option at top right.
clicking the close button or anywhere outside the POP-UP window, it should route me to the backside page.

i know this might be an easy one to search for ...I did my long search however i am not able to get the correct code or link to have a look.

Thanks in advance for your help... have a great day :)

What I have tried:

I tried this for a long time .... but i am unable to get the correct code or link to have a look.
Posted
Updated 5-Oct-16 20:43pm
Comments
Foothill 5-Oct-16 17:24pm    
When you say popup window, do you mean a whole new browser window, or one of those psudo-popup boxes through JavaScript?

From the requirement you have shared, it looks a modal popup better suits your requirement than a new popup window.
To begin with you can check a simple one as follows-
http://www.w3schools.com/howto/howto_css_modals.asp[^]
Then you may go for some beutiful popups ideas using JQuery and CSS
https://webdesignledger.com/modal-window-pop-ups-in-web-design/[^]
You can use ajax modal popup too-
http://www.aspsnippets.com/Articles/Building-Modal-Popup-using-ASPNet-AJAX-ModalPopupExtender-Control.aspx[^]

Try to implement the one you like and in case of any difficulties, please let us know.
:)
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900