Jey Ravi Jey Ravi - 1 year ago 69
Java Question

Refresh the page once using JavaScript?

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

I am already using


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.

Answer Source

You want window.location.reload()

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download