How to determine a DOM node existence of parent page?

D

DL

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top