How to refresh parent page using javascript / asp.net in mozilla firefox browser
- by Rajesh Rolen- DotNet Developer
window.opener.location.reload(); is working fine with IE but not refreshing parent page in mozilla firefox browser.. please tell me how to refresh parent page in cross browser.
i have got this function :
Shared Sub CloseMyWindow()
Dim tmpStr As String = ""
tmpStr += "window.open('','_parent','');window.close();"
tmpStr += "window.opener.location.reload();"
'Dim currentPage As Page = TryCast(HttpContext.Current.Handler, Page)
'currentPage.ClientScript.RegisterStartupScript(GetType(me), "refresh", tmpStr, True)
HttpContext.Current.Response.Write("<script language='javascript'>" + tmpStr + "</script>")
HttpContext.Current.Response.End()
End Sub