Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i open a website,i want to display popup window while loading.Like this cout.com/">http://wyscout.com/[^]
Posted

I guess this should work.

Place a 'div' in your page as display hidden.
Something like:
HTML
<div id="divMain" style="position: absolute; display: None; z-index: 1001;"></div>


Now, on page, in script tag, just make the display as display for this div:
JavaScript
document.getElementById("divMain").style.display = "block";
// set other properties of div like position
// once some event happens, hide it again.


Two things to notice, you show it as the page load is complete. You keep the zIndex higher than normal page with position absolute.

Try!
 
Share this answer
 
Comments
DeepthiTanguturi 23-Apr-12 8:05am    
Send Sample Code
Sandeep Mewara 23-Apr-12 8:27am    
Anything else with sample code? :doh:

Don't want to put any effort from your side at all. Good luck.
can you place your code here so far what you did and i think you can do it with css file and call it when the page load event completes
 
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