parent.document.location.href Nof a function

0

00steve

Hi,
I am using the line:
parent.document.location.href = "newpage.html";
to change the page of the parent from within an Iframe. This works
fine in IE6/7, although not in Firefox. The error console reads:

"parent.document.location.href is not a function"

Does anyone know an alternate / cross browser way of accomplishing
this task?

Thanks
 
H

haroon

Hi,
I am using the line:
parent.document.location.href = "newpage.html";
to change the page of the parent from within an Iframe. This works
fine in IE6/7, although not in Firefox. The error console reads:

"parent.document.location.href is not a function"

Does anyone know an alternate / cross browser way of accomplishing
this task?

Thanks

Seems to be working in FF 2.0.0.4. Can you provide a code snippet?
 
0

00steve

Seems to be working in FF 2.0.0.4. Can you provide a code snippet?

Hi,
Just realised that it was my own mistake. I was using it like
parent.document.location.href('page.html') instead of
parent.document.location.href = 'page.html';

Strangely enough, when I do the latter, it works although the page
location appears in the iframe just before the main page src changes.
Do you happen to know how to avoid this?

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
474,159
Messages
2,570,880
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top