View Full Version : window border color

09-26-2012, 05:59 AM
Hi i use javascript window open method to open a window for my mini chat. What i would like to do is make the border of the window the same color as the theme of my site which is black and red.

To explain better it is much like this edit box here.

see this space here (tiny 5px border that surrounds this browser window) it is the same kind of space that surrounds the content of the popup box and i think it is controld by the windows theme the user has selected im not sure.

The browser window has the same box of course because the popup is essentially a mini browser window.

Is there a way thru javascript (or other lang) to change that tiny 5px wide border to match mysite black and red.


Old Pedant
09-26-2012, 07:10 AM
If the chat window you open is itself an HTML page (and it really should be), then just use CSS to style it the same way you style the main window.

09-26-2012, 10:25 AM
yeah maybe i was thinking too deep into it i guess, making it harder than it had to be, i was thinking that to form the window itself that i would have to go one step deeper than css.

I have opened lots of windows with javascript, and i have formated the background and the internals of the box (html page) But i dont think i have ever seen a window itself formated with css, usually the inside content is done with css, the actual page loaded, but the window itself which is the small border around the edge and the top menu bars and the way windows opens it i always thought was a windows manager deal.

See here is the deal, i can say background this and border that in css, i do it all the time but the way i style my windows in windows 7, every window on my site or any other site has the same outside border, its a windows deal.

So if you style your windows to a certain theme they will all have the same border. Its not the html content in side the border that im referring to, its the actual window itself. So that is a windows manager deal right? :confused:

Old Pedant
09-26-2012, 10:49 PM
Ahhh...yes. I see what you mean. Yes, surely a windows manager "deal", as you say.

09-28-2012, 05:29 AM
This is in the right direction however might be alittle overkill for what i need.



But i did look at the demo and clicked some items and the window is nice for sure, very clean.

Is there something maybe in between window open and this manager that exists. i just want to have a cleaner window presentation.