Thanks Mike.  I tried this but I think we need to get the
"computedStyle"  not sure if that is correct, but that seems to return
something.    I think I have it (close) but it comes back in rgb
format which I need to convert, I think.  Style exploring. :-)

--
HLS

On Sep 15, 10:45 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> > From: Erik Beeson
>
> > Oh, just read your message again. I'd say make your "widget"
> > page fix itself. I'm not sure how cross platform this is, but
> > cursory testing indicates that you can do:
>
> > if(window.parent == window) {
> >   // standalone page
> > } else {
> >   // in iframe
> > }
>
> Yeah, that is the ticket. It is perfectly cross-platform.
>
> Hector, try adding this code immediately after the opening <body> tag of the 
> document in the iframe:
>
>     <script type="text/javascript">
>         if( parent != window )
>             window.document.body.style.backgroundColor =
>                 parent.document.body.style.backgroundColor;
>     </script>
>
> -Mike

Reply via email to