Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to determine a DOM node existence of parent page?

0 views
Skip to first unread message

DL

unread,
Nov 27, 2009, 7:27:27 PM11/27/09
to
Hi,

I thought, the following code would work but it seems I don't know
better,

if (opener.document.getElementById('parentElement')
{
// remove that node
// no problem, I know how to do it
}

Tried both IE7 and Firefox3.5

Thanks.

Jake Jarvis

unread,
Nov 27, 2009, 8:23:08 PM11/27/09
to
DL wrote:
> Hi,
>
> I thought, the following code would work but it seems I don't know
> better,

What exactly do you mean?

> if (opener.document.getElementById('parentElement')
^
The syntax error there?

http://www.jibbering.com/faq/#javascriptErrors

> {
> // remove that node
> // no problem, I know how to do it
> }
>
> Tried both IE7 and Firefox3.5
>
> Thanks.

--
Jake Jarvis

0 new messages