Click here to Skip to main content
Click here to Skip to main content

Tagged as

Reload page for refresh data without retry/cancel prompt

, 5 Feb 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Whenever we want to refresh the parent page from child page to reload the data we use:window.opener.location.reload();This however gives a prompt retry/cancel in parent page reload which is quite annoying for the user. I found a simple trick which results in the parent page being refreshed...
Whenever we want to refresh the parent page from child page to reload the data we use:
window.opener.location.reload();
This however gives a prompt retry/cancel in parent page reload which is quite annoying for the user. I found a simple trick which results in the parent page being refreshed without the prompt. Use the below line of code:
window.opener.location.href = window.opener.location;
This simply refreshes the parent page without any prompt.
 
Hope someone finds this useful.
 
Sheetal

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

sheetal7

United States United States
No Biography provided

Comments and Discussions

 
QuestionNot Working PinmemberRohith Gopi11-Oct-12 2:50 
Questionperfect. Just what I needed thanks!!! Pinmemberjdzakarian@butlermfg.com19-Apr-12 6:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 5 Feb 2010
Article Copyright 2010 by sheetal7
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid