alison wrote:
I am trying to redirect the parent page when the user clicks an html
button in an aspx page by using the javascript:
Hopefully you are not using the `javascript:' label here as that would
be either useless or error-prone.
window.opener.location.href="EditOrders.aspx"; This works fine on IE
for windows or Firefox, however on IE for Mac or Safari on Mac, it
doesn't work. If I enable script errors on IE for Mac, I get:
'window.opener.location' is not an object. Any ideas on how to get this
to work on Mac browsers? Thanks!
Try alert(window) and alert(window.opener) to see if both refer to an
object. If either does not, it would be prudent if you posted how you
opened the new window. If it does, try alert(window.opener.location).
If that returns the URL of the document displayed in the opening window,
try
if (window.opener && !window.opener.closed)
{
window.opener.location = "EditOrders.aspx";
}
instead.
HTH
PointedEars