Jey Ravi Jey Ravi - 1 month ago 4x
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.


You want window.location.reload()