Questions dealing with causing or preventing the re-rendering of an HTML document by a web browser.
Questions tagged [page-refresh]
1164 questions
22
votes
5 answers
retain angular variables after page refresh
I'm trying to figure out a way to keep my angular variables with page refresh / across controllers. My workflow is,
user logs in via facebook and gets an access token
users access token will be used with every request
I tried two ways,
1 -…

sameera207
- 16,547
- 19
- 87
- 152
16
votes
4 answers
What's the difference between F5 and Ctrl-F5 in Firefox related to JavaScript events?
When you try this public page: http://slim.nl/shop/default.aspx (update: meanwhile this site has changed such that this question's behavior cannot be tested anymore there), you'll notice a menubar. If you hit F5, the menu in that bar disappears.…

Abel
- 56,041
- 24
- 146
- 247
15
votes
4 answers
jQuery form.submit() refreshing page instead of submitting
I'm using .submit() to detect when a form is submitted, but instead of performing its attached function, it's refreshing the page.
I'm building a tool for drawing family tree diagrams (using nested lists) at http://chris-armstrong.com/familytree .…

Chris Armstrong
- 3,585
- 12
- 42
- 47
15
votes
2 answers
How to refresh ASP .NET MVC page when hitting browser back button
I just found that when I click browser back button on any ASP .NET MVC page nothing happens and page is not going be updated. And only if you click F5 it will be updated only.
The main problem that I do some changes of DOM of the page i.e. add…

NoWar
- 36,338
- 80
- 323
- 498
14
votes
3 answers
Why is creating a window slower than reloading it
Context: I'm going to explain the context of this question, but I think that the answer to the question is not very context specific.
I have a background page in chrome a chrome extension. The page does the…

COMisHARD
- 867
- 3
- 13
- 36
14
votes
2 answers
Stop Chrome Tab Sleeping/Hibernating
How can I stop Chrome from having its tabs Sleep/Hibernate? I'm running the "revolver" extension and I want the tabs to reload before I cycles to it.. however it seems that chrome's tabs are put in a state of hibernation so it doesn't reload until…

obizues
- 1,473
- 5
- 16
- 30
14
votes
4 answers
Retain page data on refreshing the page
I am new to angular. I am using a service which gets a list of objects and displays them on the 1st page. Then based on what object was clicked, I am setting the tab header on the next page. But while I am refreshing the page the scope of the list…

Nutan
- 1,478
- 3
- 12
- 19
12
votes
4 answers
How do I make a local HTML page auto-refresh on file change?
I view local HTML files in my default browser via the file:// protocol.
I would like to add some code/script to the HTML file, so that on change of the file (and ideally on change of the sucked-in CSS files) the browser refreshes the page.
I tried…

halloleo
- 9,216
- 13
- 64
- 122
12
votes
1 answer
browser refresh does not do garbage collection
I have found this on all browsers tested - IE, Firefox, Chrome and Safari on Window sand Safari on Apple.
Allegedly, a browser refresh, back button or forward link should dump the browser nodes and javascript variables and objects, etc. This appears…

Orbiting Eden
- 1,522
- 13
- 16
12
votes
3 answers
Conditional rendering in JSF
Hello I have this code to conditionally render components in my page:
sandra
10
votes
7 answers
Automatic web-page refresh using xdotool - not sending key after window focus
Given:
I have Firefox with the [Firefox Page Title] page open on my Ubuntu computer.
Here is my command:
xdotool search "[Firefox Page Title]" windowactivate --sync key --clearmodifiers ctrl+r
Documentation:
xdotool website with…

CODe
- 2,253
- 6
- 36
- 65
9
votes
4 answers
Refresh BackboneJS on with same URL hash?
My current backbone application has a url:
localhost/#users
Is there a way to access localhost/#users while at the URL localhost/#users so it refreshes the page?
Currently, when I am at localhost/#users and I try
window.location.hash = #users or…

kidcapital
- 5,064
- 9
- 46
- 68
9
votes
8 answers
Stop Javascript and HTML from Loading From Cache
I am building a single page javascript app and when the application starts I use a single javascript file to load every other file I need on the fly. When I hit refresh, according to firebug, my HTML page as well as javascript pages will load with a…

ryandlf
- 27,155
- 37
- 106
- 162
9
votes
3 answers
How to reload current tab from within a chrome extension popup.html?
I am trying to click on a button to refresh the current page from within a chrome extension.
(NOTE: The reason is because I loaded a script and I needed the page to refresh because presently I just have a disclaimer"you need to refresh the page for…

wanna know
- 107
- 1
- 2
- 7
9
votes
2 answers
How to refresh another page using javascript without opening the same page in a new tab
Is it possible to refresh a page from another page using Javascript or JQuery without opening the same page in a new tab.
JS:
var newtab = window.open('http://localhost:8081/app/home');
newtab.document.location.reload(true);
I tried the above,…

Nayana_Das
- 1,789
- 4
- 23
- 48