Refresh the page once using JavaScript?

-1

Can anyone help me with the script to refresh the page once .

I am already using window.history.forward(1);

but it gives me a wierd exception in the console .

`Error: uncaught exception: [Exception... "prompt aborted by user"  nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
resource:///components/nsPrompter.js :: openTabPrompt :: line 457"  data: no]`

help me with different script to refresh a page.

java
javascript
asked on Stack Overflow Jun 20, 2012 by Jey Ravi • edited Jun 20, 2012 by Jamie Treworgy

2 Answers

3

location.reload(true) ... come on man google that.

answered on Stack Overflow Jun 20, 2012 by Luke Pittman
2

You want window.location.reload()

answered on Stack Overflow Jun 20, 2012 by Andy Ray • edited Sep 21, 2016 by Andy Ray

User contributions licensed under CC BY-SA 3.0