"veganeater" <> wrote in message
news:rPedneNy_6ICOHvcRVn-...
>
> "veganeater" <> wrote in message
> news:6_udnTn2Ba9lCnvcRVn-...
> > Hi Everyone,
> >
> > I was wondering if there was a way to pass a variable to a popup window.
> The
> > purpose is make it so when a user clicks on a specific region/link of
the
> > glossary page, a popup opens with the related description. This is done
> and
> > is obviously not a concern. However, now I would like to make it so the
> > corresponding row becomes highlighted (changes background colour via
DOM).
> >
> > I imagine it can be done, but I'm at a loss for finding any relevant
info
> on
> > the net as so far.
> >
> > If someone could help me out, or point me in the right direction, I
would
> > really appreciate it 
> >
> > Thanks.
> > |veganeater|
> >
> >
> Okay, So I normally try to avoid posting a reply to myself, but....
>
> Working with the following script reference has shown me that I'm not just
> day dreaming - it can be done, I just still don't know how to ref setting
a
> style.background mod to a specific referenced id.
>
> eg: document.getElementsById(something).style.backgrou nd = '#FFFFFF'
>
> where the ID should be related to the corresponding <tr id="n"> in the
popup
> HTML
>
> Argh *pulls hair out*
>
> |veganeater
>
>
Okay, NOW I feel like a dumbass.... here's the code I was talking about
:
<script type="text/javascript">
var newwindow = '';
function popUp(url)
{
if (!newwindow.closed && newwindow.location)
{
newwindow.location.href = url;
}
else
{
newwindow=window.open(url, 'popup1',
'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=8
00,height=500,left = 500,top = 350');
if (!newwindow.opener) newwindow.opener = self;
}
if (window.focus) {newwindow.focus()}
return false;
}
</script>