How to refresh parent page using javascript / asp.net in mozilla firefox browser

Posted by Rajesh Rolen- DotNet Developer on Stack Overflow See other posts from Stack Overflow or by Rajesh Rolen- DotNet Developer
Published on 2010-01-20T12:57:39Z Indexed on 2010/05/03 2:58 UTC
Read the original article Hit count: 368

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

© Stack Overflow or respective owner

Related posts about cross-browser

Related posts about firefox