Vidya_tr Posted April 10, 2009 Share Posted April 10, 2009 I have a page where there is a button called 'Add video' .Clicking this button opens another window to upload the video . After upload button is pushed this new window displays 'the file has been uploaded' with a 'Continue button' (this message is displayed using php script).The onclick event of Continue button closes the window .But at the same time I want the Parent window to be reloaded.(that is the window where I have the 'Add video' button) I tried this with 'document.parent.reload()' on the onclick event of 'continue' button. but the parent window is not reloaded.. Is there something that went wrong in this... Please help me. Quote Link to comment Share on other sites More sharing options...
sandeep529 Posted April 11, 2009 Share Posted April 11, 2009 hi, may work if you use wndow.opener.location.reload() function before closing the child window. refer this url for more detail.. http://forums.devshed.com/javascript-development-115/how-to-refresh-a-parent-window-with-javascript-46942.html wonder if you googled before posting here??? Quote Link to comment Share on other sites More sharing options...
Kieran Menor Posted April 11, 2009 Share Posted April 11, 2009 Perhaps window.opener.history.go(0);? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.