469,645 Members | 1,653 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

window.open and stylesheet

19
Hi Friends,
I am using window.open(myurl, other parameters....) method to open my url in a window. The problem is that myurl takes some time to open in the window, till that time this newly created window shows the default white background which I want to change with my page color so that user doesn't feel wrong. could sombody please help me how to change the default background color of the window.

I can set the background property of the url to my color but the problem is that it takes some time to display in my window and till that time it remains white.

Please help

Thanks,
Amit
Jan 24 '07 #1
6 4421
acoder
16,027 Expert Mod 8TB
I don't think that is possible. In any case, the user will probably cause the popup to appear by performing an action, e.g. clicking a link, button, etc which means they expect the popup and know it is from your site. If not, that is bad practice because users don't like popups that appear without warning.

Also, the page should not take long to load. If it does, there may be problems in the code or you may need to make it more efficient. Perhaps you could provide the code that you are using for the myurl page.
Jan 24 '07 #2
akg
19
Hi Acoder,
user gets this popup window and they expect that they would be getting this popup window. Also my url takes approx 1 sec to load as it loads lots of data to show to the user and it seems user white flickering before page completly loads which I want to fill with stylesheet so that they don't see the flickering due to color change from defauly white to my url's background color.

Thanks,
Amit
Jan 24 '07 #3
Samji
23
Hi Acoder,
user gets this popup window and they expect that they would be getting this popup window. Also my url takes approx 1 sec to load as it loads lots of data to show to the user and it seems user white flickering before page completly loads which I want to fill with stylesheet so that they don't see the flickering due to color change from defauly white to my url's background color.

Thanks,
Amit
Maybe you should address why it takes so long to load.
Jan 24 '07 #4
akg
19
Maybe you should address why it takes so long to load.
1 sec is expected bahaviour for my client as it displays lots of data in this new window.
Jan 24 '07 #5
iam_clint
1,208 Expert 1GB
try window.onbeforeload = document.body.bgcolor = "black";
Jan 24 '07 #6
AricC
1,892 Expert 1GB
1 sec is expected bahaviour for my client as it displays lots of data in this new window.
1 sec is not long for a window with a lot of data to load. How much data are we talking about? For your flicker issue do a search here we talked about the screen flicker about 1 month ago.

Aric
Jan 24 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Jawahar Rajan | last post: by
1 post views Thread by Display Name | last post: by
14 posts views Thread by D. Alvarado | last post: by
6 posts views Thread by Jure Erznoznik | last post: by
3 posts views Thread by kosmodisk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.