Refresh Parent Window from IFRAME

S

Scott

I am trying to refresh my parent window from an IFRAME using
onClick="opener.location.reload();return
paymentConfirm('<%=insname%>',document.getElementById('txtPaymentAmount').va
lue);">

when the function PaymentConfirm returns true, I get a browser error that
says

opener.location is null or not an object - any ideas why? all i need to do
is just send a refresh or reload back to the parent window.

thanks in advance for the help.
 
M

[MSFT]

Hi Scott,

I used to use following code to refresh a page:

window.navigate window.location

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
D

Dominique

not window.opener

use window.parent

the iframe is a frame, not a window... if you know what i mean... so it
relates to the browser holding it as a parnet, not opener... :0)
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top